@property, setter and getter question?
- by fuzzygoat
NSString *statusValue;
NSString *currentValue;
@property(retain, nonatomic) NSString *statusValue;
@property(retain, nonatomic) NSString *currentValue;
@synthesize statusValue;
@sythnesize currentValue;
Given the above, if I am setting one variable to another is it work doing ...
[self setStatusValue: currentValue];
or should I use the property again and use
[self setStatusValue: [self currentValue]];
I suppose the latter (although maybe overkill) does tell the reader that we are using one of the objects instance variables and not some local variable.
just curious really ...
gary