• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: @property (retain) - Do I need to release in dealloc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >@property (retain) - Do I need to release in dealloc? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: @property (retain) - Do I need to release in dealloc?
  • Next by Date: Re: @property (retain) - Do I need to release in dealloc?
  • Previous by thread: @property (retain) - Do I need to release in dealloc?
  • Next by thread: Re: @property (retain) - Do I need to release in dealloc?
  • Index(es):
    • Date
    • Thread