• 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
Make a NSThread fall asleep and awake it.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make a NSThread fall asleep and awake it.


  • Subject: Make a NSThread fall asleep and awake it.
  • From: ROUGE Alex <email@hidden>
  • Date: Tue, 9 Nov 2004 16:16:48 +0100

Hello everybody,
I have some threads in my application, created using the following command...

[NSThread detachNewThreadSelector:@selector(generationNumber) toTarget:self withObject:nil];

Then on my generationNumber process I put those lines...

NSAutoreleasePool * localPool = [[NSAutoreleasePool alloc] init];
...
...
...

[localPool release];

On the generation process I just do a while which print number from 0 to n

Then, I wish I can make this thread sleep, like...
If I press a button, the process would be sleepy and then make it awake.

In fact generationProcess must fall asleep by itself.
I use this to make a callback in fact, so thank for your nices replies.

Alex
 _______________________________________________
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: Make a NSThread fall asleep and awake it.
      • From: Nathan Day <email@hidden>
    • Re: Make a NSThread fall asleep and awake it.
      • From: The Karl Adam <email@hidden>
  • Prev by Date: RE: New Spotlight Info
  • Next by Date: NSWindowController maddness!
  • Previous by thread: Re: Digital Video Broadcast
  • Next by thread: Re: Make a NSThread fall asleep and awake it.
  • Index(es):
    • Date
    • Thread