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: Chilton Webb <email@hidden>
- Date: Sun, 1 Feb 2004 19:14:27 -0600
Hi Jvrn,
On Feb 1, 2004, at 6:56 PM, Jvrn Salewski wrote:
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.
Thank you for the suggestion. It's not in an NSThread, though I do
wonder if I had the bundle create an NSThread, if things would work
better. Hmmm.
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];
I'm already doing this. Any other ideas?
-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.