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 14:56:35 -0700
On Nov 23, 2004, at 2:17 PM, Keith Blount wrote:
Looking at
the Anguish et al book, I am thinking that maybe I
need to move my for... loop into a separate method and
then call that method using
detachNewThreadSelector:toTarget:withObject: - is that
the way to go
Yes. You'll also have to end your sheet in the method running in the
thread, and if you're using mutable objects, then you must also
implement locking so two threads don't try and operate on the same
object at once. Don't forget to use -performSelectorInMainThread: when
you need to end the sheet, since a good deal of the AppKit is not
thread-safe.
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