• 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: Continue application processing with mouse down on a menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continue application processing with mouse down on a menu


  • Subject: Re: Continue application processing with mouse down on a menu
  • From: Scott Ribe <email@hidden>
  • Date: Sun, 27 Sep 2015 08:33:01 -0600

On Sep 26, 2015, at 12:19 PM, Programmingkid <email@hidden> wrote:
>
> I just wish there were an easy way for the a task on the main thread to continue to work even if the user is looking at a menu. Using multiple threads has a lot of problems associated with it.

A simple way to interleave execution of two different tasks without using threads? You're essentially wishing for magic fairy dust.

Yes, there are ways to interleave two tasks without threads, but building a little finite state machine that interleaves between them, or coming up with some co-routine implementation and then yielding at key points, as in the old days of cooperative multi-processing, have way more problems than multiple threads.

If you have computation that needs to keep running without blocking menu tracking and other event handling, you need to put it on its own thread, period.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(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: Continue application processing with mouse down on a menu
      • From: Programmingkid <email@hidden>
References: 
 >Continue application processing with mouse down on a menu (From: Programmingkid <email@hidden>)
 >Re: Continue application processing with mouse down on a menu (From: Jens Alfke <email@hidden>)
 >Re: Continue application processing with mouse down on a menu (From: Programmingkid <email@hidden>)
 >Re: Continue application processing with mouse down on a menu (From: Jens Alfke <email@hidden>)
 >Re: Continue application processing with mouse down on a menu (From: Programmingkid <email@hidden>)

  • Prev by Date: Re: -[NSThread start] blocks ?!?
  • Next by Date: Re: Continue application processing with mouse down on a menu
  • Previous by thread: Re: Continue application processing with mouse down on a menu
  • Next by thread: Re: Continue application processing with mouse down on a menu
  • Index(es):
    • Date
    • Thread