• 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: Brian Bergstrand <email@hidden>
  • Date: Tue, 7 Dec 2004 19:20:50 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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?
>

You can sleep the run loop or just call the C function sleep() which
takes the number of seconds as it's one arg. This will block your app
though. usleep() is the same, but takes a microseconds arg.

HTH.

Brian Bergstrand <http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <http://www.bergstrand.org/brian/misc/public_key.txt>
It is easy to convert a bug to a feature; document it. - The Microsoft
Employee Handbook, p.215, section B, article VII
As of 05:01:23 PM, iTunes is playing "Walk In The Shadows" from "Rage
For Order" by "Queensrÿche"

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQbZI7XnR2Fu2x7aiEQIW4wCeL9UIE44sFC3WWJHkuYDkXKFCv/EAnjof
MxJuwS9ImA8yBqe+ezP+qXIK
=ND1b
-----END PGP SIGNATURE-----

 _______________________________________________
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: applicationShouldTerminate and asynch handling
  • Next by Date: Re: delay function
  • Previous by thread: Re: delay function
  • Next by thread: Re: delay function
  • Index(es):
    • Date
    • Thread