• 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: how to know when a thread is done setting up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >how to know when a thread is done setting up (From: "William Irving Zumwalt" <email@hidden>)

  • Prev by Date: how to know when a thread is done setting up
  • Next by Date: Need some more understanding about NSDrawer
  • Previous by thread: how to know when a thread is done setting up
  • Next by thread: Need some more understanding about NSDrawer
  • Index(es):
    • Date
    • Thread