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
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to