Re: Button doesn't respond in a modal sheet created from window NIB
Re: Button doesn't respond in a modal sheet created from window NIB
- Subject: Re: Button doesn't respond in a modal sheet created from window NIB
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 23 Nov 2004 16:40:03 -0700
On Nov 23, 2004, at 4:29 PM, Keith Blount wrote:
Thank you very much again for your repy. I haven't had
much success yet (keep getting lots of curious leaks
when I try it)
That's because, when you make your own thread, you need to create your
own catch-all autorelease pool for the thread. Or use NSApplication's
thread detaching method, +detachDrawingThread:toTarget:withObject:,
which has the same functionality as the one in NSThread except that it
creates an autorelease pool for you. See the NSAutoreleasePool docs for
details.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden