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

Re: ask about sleep function


  • Subject: Re: ask about sleep function
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 29 Jul 2002 14:37:36 +0200

On Monday, July 29, 2002, at 08:17 , Chong Hiu Pun wrote:

Thanks, actually I want to show progress in progress bar, however it is so
fast that the user cannot see the bar moving.

Then don't show the bar at all, no?

As a result, how can I start
the progress bar and make it slower in another thread instead of using the
sleep function?thanks!

You can use sleep (or preferrably NSThread's -sleepUntilDate:) for that, but slowing your own app deliberately this way does not look that great to me. That is, unless you want to sell soon a release 2 whose speed has considerably improved ;)))
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: 
 >Re: ask about sleep function (From: "Chong Hiu Pun" <email@hidden>)

  • Prev by Date: Re: ask about sleep function
  • Next by Date: Re: ask about sleep function
  • Previous by thread: Re: ask about sleep function
  • Next by thread: Re: ask about sleep function
  • Index(es):
    • Date
    • Thread