Re: NSTextField not updated during large process
Re: NSTextField not updated during large process
- Subject: Re: NSTextField not updated during large process
- From: Koen van der Drift <email@hidden>
- Date: Sun, 30 Sep 2012 19:20:11 -0400
On Sep 30, 2012, at 6:51 PM, Ken Thomases <email@hidden> wrote:
> Move the long-running operation to a background thread (e.g. using -performSelectorInBackground:withObject:, or dispatch_async() to a non-main queue, or NSOperation and NSOperationQueue, etc.). However, all updates to the GUI still have to happen on the main thread. Therefore, all updates of properties to which the GUI is bound have to happen on the main thread. You can shunt those over using -performSelectorOnMainThread:..., dispatch_[a]sync to the main queue, NSOperation and +[NSOperationQueue mainQueue], etc.
Thanks, I'll try that.
- Koen.
_______________________________________________
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