• 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: Autorelease pool question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autorelease pool question


  • Subject: Re: Autorelease pool question
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 16 Jan 2004 14:48:26 +0000

On 13 Jan 2004, at 14:25, Timothy Reaves wrote:

> According to Apple's documentation, "the Application Kit
> automatically sets up an autorelease pool scoped to the applications
> event cycle." So does this mean that each event has its own pool, or
> that the event handler has the pool?

If you find yourself worrying about this sort of thing, it often means
you're doing something wrong. Generally you shouldn't make assumptions
about the scope of the current autorelease pool, unless you have
created your own pool for a particular section of code. Even then,
it's still best not to write your code to rely on that pool being
there, because you might want to remove it at some point in the future.

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Autorelease pool question (From: "Timothy Reaves" <email@hidden>)

  • Prev by Date: Bundles work differently depending on application launch path?
  • Next by Date: (no subject)
  • Previous by thread: Re: Autorelease pool question
  • Next by thread: Re: Autorelease pool question
  • Index(es):
    • Date
    • Thread