• 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: NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSThread


  • Subject: Re: NSThread
  • From: Brendan Younger <email@hidden>
  • Date: Thu, 9 May 2002 12:46:27 -0400

On Thursday, May 9, 2002, at 11:50 AM, Martin Weil wrote:

Flower *daisy = [[Flower alloc] init];

[NSThread detachNewThreadSelector:@selector(grow) toTarget:daisy
withObject:nil];

Ok, I have done that, but it did not work, no error but it does simply
nothing, can you tell me whats the difference between these methods?
Or perhaps you could tell me whats my mistake.

There's a threads tutorial over at Cocoa Dev Central (http://www.cocoadevcentral.com/tutorials/?narrow=tut-regular), look for Multithreaded Programming. Remember that the method you start a new thread with is the *only* thing that will execute. In this instance, once "grow" returns, the thread has exited.

Brendan Younger
_______________________________________________
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: NSThread
      • From: Martin Weil <email@hidden>
References: 
 >Re: NSThread (From: Martin Weil <email@hidden>)

  • Prev by Date: Re: List of delegates
  • Next by Date: Re: NSThread
  • Previous by thread: Re: NSThread
  • Next by thread: Re: NSThread
  • Index(es):
    • Date
    • Thread