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 12:19:55 -0700
On Nov 23, 2004, at 12:09 PM, Keith Blount wrote:
The only difference I can see is that
the other sheet I use is created from an action
connected to a menu, and there's not a for... loop
bang in the middle of it. Could this be the problem?
No.
If somebody could tell me what I'm doing wrong, I
would be very grateful.
You've got a method that runs a for loop in the main thread. While this
is going on, the run loop will not be processing events, which means it
will not invoke the action until your method is finished and the run
loop can start processing again. To resolve this, you either need to
move your processing loop to another thread, or process events inside
your processing loop.
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