• 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
NEWBIE: where to start my thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NEWBIE: where to start my thread
      • From: Chris Cutler <email@hidden>
  • Prev by Date: Re: NSPoints in an NSMutableArray
  • Next by Date: Re: RTFD from a Foundation app?
  • Previous by thread: How to validate a number string ?
  • Next by thread: Re: NEWBIE: where to start my thread
  • Index(es):
    • Date
    • Thread