• 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: Weird problem involving memory management and global variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Weird problem involving memory management and global variable (From: Sam Stigler <email@hidden>)

  • Prev by Date: Re: Places to go for a new Cocoa developer?
  • Next by Date: Re: Places to go for a new Cocoa developer?
  • Previous by thread: Re: Weird problem involving memory management and global variable
  • Next by thread: Window freezes app
  • Index(es):
    • Date
    • Thread