Re: Autorelease pool question
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.