Re: how to know when a thread is done setting up
Re: how to know when a thread is done setting up
- Subject: Re: how to know when a thread is done setting up
- From: Nir Soffer <email@hidden>
- Date: Mon, 25 Dec 2006 06:12:16 +0200
On Dec 25, 2006, at 04:25, William Irving Zumwalt wrote:
I've been following along the tutorials to setup a thread and using
the threadviewer, I can see that the thread is started and also exits
when I command it to.
My thread being started from a controller like ...
[MyServer startNetworkThreadWithTag:0 forController:self];
[server start];
You have to call [server start] from the client setServer: method.
For example:
- (void)startServer
{
connection = [[MyServer startNetworkThreadWithTag:0
forController:self] retain];
}
- (void)setServer:(id)aServer
{
// accessor stuff...
[server start];
}
Best Regards,
Nir Soffer
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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