• 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: Detecting a user click while in a lengthy task (mainthread)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting a user click while in a lengthy task (mainthread)


  • Subject: Re: Detecting a user click while in a lengthy task (mainthread)
  • From: Shawn Erickson <email@hidden>
  • Date: Fri, 13 Jan 2006 07:37:52 -0800


On Jan 13, 2006, at 1:28 AM, Aurélien Hugelé wrote:

PS : i know i should thread this, but it is much too complex for the moment...

Unless you can easily split your task into chunks so you can yield time periodically to process events you should just throw things off into a secondary thread. It really isn't complex to do that... depending on how you go about it and your requirements (a few lines of code in the simplest case). Often trying to break your task up into chunks is harder then just threading it.


-Shawn _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Detecting a user click while in a lengthy task (mainthread) (From: Aurélien Hugelé <email@hidden>)

  • Prev by Date: Re: Notifications when iPods are mounted...
  • Next by Date: Re: Cocoa Custom NSCell Binding Issue
  • Previous by thread: Re: Detecting a user click while in a lengthy task (mainthread)
  • Next by thread: LDAP and Cocoa
  • Index(es):
    • Date
    • Thread