• 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
NSThread close (exit)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSThread close (exit)


  • Subject: NSThread close (exit)
  • From: Yorh <email@hidden>
  • Date: Wed, 5 Apr 2006 14:00:53 +0200

Hi to all,

I have a NSThread and I would like to exit from it from a external method:

ie

-(void)startThread
{
[NSThread deatachNewThreadSelector ......];
}

-(void)stopThread{

[NSThread exit];
}

Of course if I exit from the thread in this way the stopped thread is the main one... How can I select a specific thread?
I tried with an accessor method:


-(void)setThread:(NSThread*)aThread;
-(NSThread*)theThread;

But this not wok

Thank you all
Yorh

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSThread close (exit)
      • From: Christian Stieber <email@hidden>
  • Prev by Date: Re: Modifying Core Data fields Programatically
  • Next by Date: Re: NSThread close (exit)
  • Previous by thread: Re: infinite loop in another thread destroy g4 CPU
  • Next by thread: Re: NSThread close (exit)
  • Index(es):
    • Date
    • Thread