Re: Understanding the Run loop idea and the updating of controls during long operations
Re: Understanding the Run loop idea and the updating of controls during long operations
- Subject: Re: Understanding the Run loop idea and the updating of controls during long operations
- From: Scott Ribe <email@hidden>
- Date: Sun, 7 Nov 2010 08:00:31 -0700
On Nov 7, 2010, at 4:05 AM, eveningnick eveningnick wrote:
> I am trying to understand these techniques step by step, it is really
> difficult for me when everything is hidden :(
You seem to be trying to find ways to use the frameworks in ways that are not intended. Why are you not using NSApplicationMain in the normal way?
Two reasonable choices are:
- A single thread, where your processing is implemented as a finite state machine that can yield after a bit of work and return to the run loop, but sets an NSTimer to fire in 0 seconds just before it returns.
- Multiple threads, figure out your bug with synchronization around AppleScripts (there is no reason the library would run slower just because you add a new thread).
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden