• 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: Using NSThreads in command-line apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSThreads in command-line apps


  • Subject: Re: Using NSThreads in command-line apps
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 15 May 2008 20:51:27 +0200

Am 15.05.2008 um 20:42 schrieb ben syverson:
Actually, I'm able to spawn new threads perfectly well. The problem is that I can't (?) use performSelectorOnMainThread: because I'm not an NSApplication, and so I don't get the default "main" thread that loops for user input...


Check out NSRunLoop. I think if you create one of those at startup and run it, that will become your main loop and will take care of performSelectorOnMainThread: and the likes.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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: 
 >Using NSThreads in command-line apps (From: ben syverson <email@hidden>)

  • Prev by Date: Re: Using NSThreads in command-line apps
  • Next by Date: Re: Using NSThreads in command-line apps
  • Previous by thread: Re: Using NSThreads in command-line apps
  • Next by thread: Re: Using NSThreads in command-line apps
  • Index(es):
    • Date
    • Thread