Re: Manually installing an autorelease pool for NSEvents?
Re: Manually installing an autorelease pool for NSEvents?
- Subject: Re: Manually installing an autorelease pool for NSEvents?
- From: Jörn Salewski <email@hidden>
- Date: Mon, 02 Feb 2004 01:56:29 +0100
am 02.02.2004 1:18 Uhr schrieb Chilton Webb unter email@hidden:
>
Hi,
>
>
I'm trying to track down a Cocoa bundle issue, and one theory put forth
>
so far is that Cocoa is not installing an autorelease pool for
>
NSEvents.
NSEvents do not need their own NSAutoreleasePool, each NSThread does.
>
Would it be possible to do this manually?
Yes, of course. Just embrace everything else that happens in your thread
with
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// do whatever you want to do inside your thread
[pool release];
>
>
Thanks,
>
-Chilton
>
_______________________________________________
>
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.
_______________________________________________
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.