• 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: Storing bundle loaded main class instances in NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing bundle loaded main class instances in NSArray


  • Subject: Re: Storing bundle loaded main class instances in NSArray
  • From: glenn andreas <email@hidden>
  • Date: Wed, 08 Apr 2009 09:46:52 -0500


On Apr 8, 2009, at 9:34 AM, Daniel Luis dos Santos wrote:

Since I am using an auto release pool that is created before anything else, those initializers create auto released objects that will only be released at the end of the code execution. They will be valid until the program terminates


That's not what the memory management rules tell you to do.

How do you know that there isn't an auto-release pool outside of that which gets cleaned up (and nested auto release pools are automatically cleaned up when the outer one is)?


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! Mad, Bad, and Dangerous to Know

_______________________________________________

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


  • Follow-Ups:
    • Re: Storing bundle loaded main class instances in NSArray
      • From: Daniel Luis dos Santos <email@hidden>
References: 
 >Fwd: Storing bundle loaded main class instances in NSArray (From: Daniel Luis dos Santos <email@hidden>)
 >Re: Storing bundle loaded main class instances in NSArray (From: Graham Cox <email@hidden>)
 >Re: Storing bundle loaded main class instances in NSArray (From: Daniel Luis dos Santos <email@hidden>)
 >Re: Storing bundle loaded main class instances in NSArray (From: Steve Christensen <email@hidden>)
 >Re: Storing bundle loaded main class instances in NSArray (From: Daniel Luis dos Santos <email@hidden>)

  • Prev by Date: Setting Min, MAx and range of characters for NSTextField
  • Next by Date: Re: Programatically creating NSMenu?
  • Previous by thread: Re: Storing bundle loaded main class instances in NSArray
  • Next by thread: Re: Storing bundle loaded main class instances in NSArray
  • Index(es):
    • Date
    • Thread