NEWBIE: where to start my thread
NEWBIE: where to start my thread
- Subject: NEWBIE: where to start my thread
- From: Chris Cutler <email@hidden>
- Date: Thu, 6 Feb 2003 11:37:53 -0800
Hello,
Where is the best place to usdetachNewThreadSelector:toTarget:withObject
to start a new thread? I would like my thread to start as soon as my
application has initialized.
Right now I'm starting it in the init function of my controller class
(using the MVC way of doing things). My controller is instantiated in
IB, as is the target class where the thread will start. When I run the
app the controller is instantiated before the the target class, so
there is nothing to start the thread on.
I've been unabled to find sample code which uses threads. Is there a
better place to start a thread which should strat as soon as the
applicaiton starts?
Thanks very much,
Chris
_______________________________________________
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.