• 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: dealloc event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dealloc event


  • Subject: Re: dealloc event
  • From: j o a r <email@hidden>
  • Date: Fri, 20 May 2005 14:38:02 +0200


On 20 maj 2005, at 14.30, Theodore H. Smith wrote:

If I have some object defined with object fields, must I release them on my object's dealloc event, or does this happen automatically?

You must balance your "release and retain events" (*). This also holds true for instance variables. So, yes, you need to call release manually in dealloc.


j o a r


*) ie. all operations that affects the retain count of an object


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >dealloc event (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Length of a file
  • Next by Date: Re: dealloc event
  • Previous by thread: dealloc event
  • Next by thread: Re: dealloc event
  • Index(es):
    • Date
    • Thread