Re: NSThread implementation
Re: NSThread implementation
- Subject: Re: NSThread implementation
- From: Nathan Day <email@hidden>
- Date: Thu, 28 Feb 2002 23:37:05 +1030
Your question is not very clear, but I think you might be interested in
NSTimers
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self
selector:@selector(myListFilesOneByOneMethod:) userInfo:nil repeats:YES];
or do you mean
[NSThread sleepUntilDate:[NSDate dateWithTimeIntervalSinceNow:1.0]];
On Thursday, February 28, 2002, at 06:47 AM, Lukasz Kuczborski wrote:
How can i implement a simple NSThread's sleepUntilDate: method in a
search
engine...so that files would be listed one by one (not after search) and
program will not freeze during searching (so i could do anything in
program
besides searching in current moment)?
I want it to work like Java's thread.sleep(1000);
Thanks for any advice!
(Examples are welcome too!)
_______________________________________________
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.