Re: Weird problem involving memory management and global variable
Re: Weird problem involving memory management and global variable
- Subject: Re: Weird problem involving memory management and global variable
- From: Andrew Farmer <email@hidden>
- Date: Tue, 29 May 2007 17:37:02 -0700
On 29 May 07, at 17:17, Sam Stigler wrote:
I was doing it because I wasn't sure if _children would be
autoreleased when I autorelease the class. Do I not need to worry
about that?
You need to (re)read the Cocoa memory management documentation. The
rules for when objects should be retained, released, and autoreleased
are very simple and very specific.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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