Mailing Lists: Apple Mailing Lists

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

Re: Catching a click during a loop



Thank you for the link.
I'll read it over and see what I can learn from it. Thanks
Mark.

On Jul 30, 2005, at 11:18 PM, John Stiles wrote:

Just FYI, threading isn't a small tweak. You do need to use a thread in order to solve your problem, but there are a lot of things you need to know first.
You should probably spend an hour or two and read about it before writing too much code:
http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/index.html#//apple_ref/doc/uid/10000057i


(There might be better resources as well; this was one of the best links I could pull up after searching for a minute or two.)


On Jul 30, 2005, at 10:40 PM, Mark Williams wrote:


Ok. I will move it to a new thread. I tried that before and it made no difference before but I must have done it wrong. I think I know where the mistake there was.

Thanks,
Mark.

On Jul 30, 2005, at 8:26 PM, Cameron Hayne wrote:




On 30-Jul-05, at 10:42 PM, Mark Williams wrote:




Ok, well it's not taking the click at all until after the loop finishes.
So I guess I'm wondering what I did wrong in this loop that I cannot click cancel.





It sounds like your loop is in the main thread instead of being on a separate thread. If it were on a separate thread, it wouldn't affect the main thread.


--
Cameron Hayne
email@hidden








_______________________________________________
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/jstiles% 40blizzard.com


This email sent to email@hidden







_______________________________________________ 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
References: 
 >Catching a click during a loop (From: Mark Williams <email@hidden>)
 >Re: Catching a click during a loop (From: Cameron Hayne <email@hidden>)
 >Re: Catching a click during a loop (From: Mark Williams <email@hidden>)
 >Re: Catching a click during a loop (From: Mark Williams <email@hidden>)
 >Re: Catching a click during a loop (From: Cameron Hayne <email@hidden>)
 >Re: Catching a click during a loop (From: Mark Williams <email@hidden>)
 >Re: Catching a click during a loop (From: John Stiles <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.