I understand that when accessing setter / getter methods for properties, I have to use [ self setThisValue:@"a"];, and not thisValue = @"a";. However, in the example below, I see that adding my own documents that I send a message to the iVar property is more likely than a variable with local scope, but does it do anything else in this case?
@interface CustomController : UIViewController {
NSMutableArray *foundList;
}
@property(nonatomic, retain) NSMutableArray *foundList;
@end
.
[[self foundList] addObject:eachObject];
OR
[foundList addObject:eachObject]
Gary.
source
share