On Sep 12, 2013, at 2:52 PM, Aaron Montgomery wrote:
> 
> I think it is either
> _protoCell = [[Cell alloc] init];
> or
> self.protoCell = [[Cell alloc] init];

These aren't equivalent unless the @property is assign, which usually is not 
what you want for object instvars that you intend to own. 

@property (readwrite, retain) protoCell;

_protoCell = [[Cell alloc] init];
self.protoCell = [[[Cell alloc] init] autorelease];
self.protoCell = [foo somethingThatReturnsAProtoCell]; // since getters 
generally do not provide a retained object; see earlier discussions today :)

self.protoCell = nil;
[_protoCell release]; _protoCell = nil;
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to