• 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: delay function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delay function


  • Subject: Re: delay function
  • From: "James B. Tuley" <email@hidden>
  • Date: Tue, 7 Dec 2004 18:41:53 -0600


On Dec 7, 2004, at 6:32 PM, John Spicer wrote:

is there a simple way to insert a delay of seconds in obj-c/cocoa?

in the old system there was a Delay () function.

is there something like it in the new?

NSThread sleepUntilDate:
file:///Developer/ADC Reference Library/documentation/Cocoa/ Reference/Foundation/ObjC_classic/Classes/NSThread.html#//apple_ref/ doc/uid/20000311/CHDCEDAE


NSDate dateWithTimeIntervalSinceNow:
file:///Developer/ADC Reference Library/documentation/Cocoa/ Reference/Foundation/ObjC_classic/Classes/NSDate.html#//apple_ref/doc/ uid/20000188/dateWithTimeIntervalSinceNow_


-Jay

_______________________________________________
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


References: 
 >delay function (From: John Spicer <email@hidden>)

  • Prev by Date: delay function
  • Next by Date: Re: sorting on floats
  • Previous by thread: delay function
  • Next by thread: Re: delay function
  • Index(es):
    • Date
    • Thread