Make a NSThread fall asleep and awake it.
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