Re: GUI threading question
Re: GUI threading question
- Subject: Re: GUI threading question
- From: Scott Ribe <email@hidden>
- Date: Mon, 02 Feb 2009 10:03:45 -0600
- Thread-topic: GUI threading question
> It has long been my understanding that in order to keep a GUI from
> freezing in Cocoa during LONG methods you have to create a
> NSOperationQueue and load the method as a NSInvocationOperation as seen
No, you have to run the long operations on another thread. NSOperationQueue
is supposed to provide an easy way to do that, but it's not necessary. You
can start a thread and arrange to receive its results using NSThread, or
MPTasks, or pthreads...
--
Scott Ribe
email@hidden
http://www.killerbytes.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