Re: NEWBIE: where to start my thread
Re: NEWBIE: where to start my thread
- Subject: Re: NEWBIE: where to start my thread
- From: Chris Cutler <email@hidden>
- Date: Thu, 6 Feb 2003 11:54:35 -0800
Never mind. I think I just found a solution: start the thread in the
init function of the target object. That is, have an object start a
thread on itself.
Sorry to bother you all.
Chris
cutler wrote:
>
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.