I come from Ruby in Objective-C, and I keep doing:
NSObject *foo;
@property (nonatomic,retain) NSObject *foo;
in the .h file and then in the .m file:
@synthesize foo;
above and
[foo release]
in dealloc.
These are 4 steps to add foo! Do experienced Objective-C programmers have all four manual steps each time they want to add a new instance variable to a class? Am I missing a way to do this DRY?
source
share