Re: NSThread Question
Re: NSThread Question
- Subject: Re: NSThread Question
- From: Lorenzo Puleo <email@hidden>
- Date: Wed, 24 Apr 2002 00:18:19 +0200
on 4/23/02 8:29 PM, Erik M. Buck at email@hidden wrote:
>
[self performSelector:@selector(executeLoop:) withObject:[NSNumber
>
numberWithInt:0]
>
afterDelay:0.0];
Hi,
thank you for your help. "performSelector" works fine with simple tasks. I
have learned a new thing. For complex tasks someone else suggested me to use
[NSThread detachNewThreadSelector:@selector(processTheItems) toTarget:self
withObject:nil];
This way you don't have to call "performSelector" on each single task;
simple verify the variable "isRunning" is "NO".
See my next note in this mailing list.
Thanks again
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
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.