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