• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField not updated during large process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextField not updated during large process (From: Koen van der Drift <email@hidden>)
 >Re: NSTextField not updated during large process (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: NSTextField not updated during large process
  • Next by Date: Getting a dotted font from a regular font
  • Previous by thread: Re: NSTextField not updated during large process
  • Next by thread: Getting a dotted font from a regular font
  • Index(es):
    • Date
    • Thread