• 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: NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask


  • Subject: Re: NSTask
  • From: Torsten Curdt <email@hidden>
  • Date: Tue, 22 Jul 2008 23:49:02 +0200


On Jul 22, 2008, at 23:35, Nick Zitzmann wrote:


On Jul 22, 2008, at 3:31 PM, Torsten Curdt wrote:

When I do

  [NSThread detachNewThreadSelector:@selector(something)
                           toTarget:self
                         withObject:nil];

How can I get access to the NSThread object??

What are you trying to accomplish?

I was looking into the cancelation of the thread. (isCanceled/cancel since 10.5) And just noticed that I don't have the reference to the NSThread - at least not when using detachNewThreadSelector. And then I was wondering how you would get access to the instance on 10.4. (10.5 you can create and start the NSThread via init/start)


I would have expected detachNewThreadSelector to return a NSTask object.


Why would you expect that? The creation of a new thread doesn't spawn a task; it spawns a thread.

Doh! Sorry ...I meant NSThread of course!

cheers
--
Torsten

_______________________________________________

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: NSTask
      • From: David Duncan <email@hidden>
    • Re: NSTask
      • From: Randall Meadows <email@hidden>
References: 
 >NSTask (From: Torsten Curdt <email@hidden>)
 >Re: NSTask (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSTask
  • Next by Date: NSThread (was Re: NSTask)
  • Previous by thread: Re: NSTask
  • Next by thread: Re: NSTask
  • Index(es):
    • Date
    • Thread