• 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
Re: NSThread implementation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSThread implementation (From: Lukasz Kuczborski <email@hidden>)

  • Prev by Date: Sorry
  • Next by Date: Re: Problems adding horiz scrollbar to NSTextView
  • Previous by thread: NSThread implementation
  • Next by thread: Re: notifications vs delegates
  • Index(es):
    • Date
    • Thread