• 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: Bill Bumgarner <email@hidden>
  • Date: Thu, 15 May 2008 12:31:53 -0700

On May 15, 2008, at 12:17 PM, ben syverson wrote:
On May 15, 2008, at 1:49 PM, Randall Meadows wrote:
Can't you cache the main thread [NSThread +currentThread] when you start up, and then use NSObject's - performSelector:onThread:withObject:waitUntilDone: method?

Yes, that would be ideal! Unfortunately that method is 10.5 only...

And it'd require a run loop in the target thread...

b.bum

_______________________________________________

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>)
 >Re: Using NSThreads in command-line apps (From: Randall Meadows <email@hidden>)
 >Re: 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: Guidance for Cocoa's steep learning curve
  • Previous by thread: Re: Using NSThreads in command-line apps
  • Next by thread: Re: Using NSThreads in command-line apps
  • Index(es):
    • Date
    • Thread