I am working through the Stanford lecture, calculator tutorial. In it to create an example of a model, it suggests a good technique Gives: _operandStack) {_operandStack = [[NSMutableArray alloc] init]; } Return _printerstacks; } However, for the first time, Which, I understand, is using setter. I can see that it clearly works (it moves) - but I understand why no one still tries to get anything from Your misconception is to suppress the idea that This is a dot notation confusing dot notation only resolves basic function calls, so for example using the familiar class bracket notation, the above mentioned code excerpt can be written. This is the same: This form is still completely valid, and is also preferred by some people. In this form, it makes a bit obvious to see that you are actually calling the "Gator" function.
- (NSMutableArray *) operandStack {if ()
[operandStack] is used:
[self.operandStack addObject: operandObject] ;
operandStack Has anyone illuminated me, I had no luck with any search.
[self OPDSTACK AD Object: Operand Object]; A "setter" operation is to translate that expression into English: "Passing the operation object, send the 'addObject' message to the NSMutableArray received by the method operated stack."
[[OperntStack itself] addObject: operandObject];
Comments
Post a Comment