FROM : Nick Zitzmann
DATE : Tue Nov 23 20:19:55 2004
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/>
DATE : Tue Nov 23 20:19:55 2004
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/>
| Related mails | Author | Date |
|---|---|---|
| Keith Blount | Nov 23, 20:09 | |
| Nick Zitzmann | Nov 23, 20:19 | |
| Keith Blount | Nov 23, 22:17 | |
| Nick Zitzmann | Nov 23, 22:56 | |
| Keith Blount | Nov 24, 00:29 | |
| Nick Zitzmann | Nov 24, 00:40 | |
| Keith Blount | Nov 24, 19:14 |






Cocoa mail archive

