• 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: How to make a RunLoop patiently do nothing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make a RunLoop patiently do nothing?


  • Subject: Re: How to make a RunLoop patiently do nothing?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 3 Dec 2008 22:49:37 -0500

Chris Idou (email@hidden) on 2008-12-03 10:44 PM said:

>I want to have a separate thread in my app which does time consuming
>things. I want to assign tasks to this thread using performSelector:onThread.
>
>Now you can't have a runloop with no input sources, or it exits
>immediately. So how do I start a thread with a runloop that does nothing
>except patiently wait for performSelector:onThread: calls?

Could you just add a timer to the runloop?  The timer could be periodic,
firing every 42 years.

Sean


_______________________________________________

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: 
 >How to make a RunLoop patiently do nothing? (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: How to make a RunLoop patiently do nothing?
  • Next by Date: Re: Programmatically loading an NSImage via other field
  • Previous by thread: Re: How to make a RunLoop patiently do nothing?
  • Next by thread: How to display simple dialog at application startup?
  • Index(es):
    • Date
    • Thread