• 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: GUI threading question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: GUI threading question
      • From: Michael Ash <email@hidden>
References: 
 >GUI threading question (From: email@hidden)

  • Prev by Date: Re: [OT] Localizing an App or Plugin
  • Next by Date: Re: +[NSColor highlightColor] in NSTableView
  • Previous by thread: GUI threading question
  • Next by thread: Re: GUI threading question
  • Index(es):
    • Date
    • Thread