Re: @property (retain) - Do I need to release in dealloc?
Re: @property (retain) - Do I need to release in dealloc?
- Subject: Re: @property (retain) - Do I need to release in dealloc?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 9 Sep 2009 00:35:11 -0700
On Sep 9, 2009, at 12:29 AM, Oleg Krupnov <email@hidden>
wrote:
It is not however clear, and I haven't found it in the guide, whether
it's still my responsibility to call [_myProp release] in
-(void)dealloc ?
Yes. If you are synthesizing your instance variables, and are on
Leopard, you will instead need to set your property to nil. If you are
nit synthesizing your instance variables, or are running on Snow
Leopard, you should release the instance variable directly.
Synthesized variables on Snow Leopard can be accessed using the self->
syntax.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden