Re: NSThread
Re: NSThread
- Subject: Re: NSThread
- From: Brendan Younger <email@hidden>
- Date: Thu, 9 May 2002 12:46:27 -0400
On Thursday, May 9, 2002, at 11:50 AM, Martin Weil wrote:
Flower *daisy = [[Flower alloc] init];
[NSThread detachNewThreadSelector:@selector(grow) toTarget:daisy
withObject:nil];
Ok, I have done that, but it did not work, no error but it does simply
nothing, can you tell me whats the difference between these methods?
Or perhaps you could tell me whats my mistake.
There's a threads tutorial over at Cocoa Dev Central
(
http://www.cocoadevcentral.com/tutorials/?narrow=tut-regular), look for
Multithreaded Programming. Remember that the method you start a new
thread with is the *only* thing that will execute. In this instance,
once "grow" returns, the thread has exited.
Brendan Younger
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: NSThread (From: Martin Weil <email@hidden>) |