What's the best way to release objective-c properties?
- by mkraken
I'm new to memory-management, and am reading different things about how to best release properties.
If I have:
in .h:
@property(retain) NSString *myStr;
and in .m:
@synthesize myStr = _iVarStr;
Should my dealloc have:
[_iVarStr release];
or
self.myStr = nil;
or something else?
Thanks!