Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Catching a click during a loop



I have a program with a rather lengthy process, and I would like to be able to click cancel and have the operation canceled. This process is preformed within a while loop. I have tried running it in a new thread, I have tried the runUntilDate and neither seems to allow my cancel button to be clicked (You click and nothing happens.)
until the process is complete.
To complicate matter parts of the app are in plain old C. no OBJ-C. and there is a loop within a loop that is in C.
Does any one have a suggestion as to how I can get my app to see the click?


Mark.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.