• 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
NSProgressIndicator bug report
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSProgressIndicator bug report


  • Subject: NSProgressIndicator bug report
  • From: "Arthur C." <email@hidden>
  • Date: Thu, 08 Feb 2007 23:00:54 +0100

Today I have set up an NSProgressIndicator using the timestamp
NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate];

First I set the minimum value for the indicator to 'now', and the maximum to 'now + 60.0' for example. Then I let the current progress value be updated every 0.1 second using a timer. The progress value is then taken as the updated 'now'.

I noticed that the progress bar only advances every 10 seconds, on timestamps ...05, ...15 and so on. The docs say that the NSProgressIndicator takes doubles as input, but I strongly suspect that the arithmetic is done using floats...
When I subtracted the startup timestamp, the indicator behaved as it should.


Has this been seen before? If not, the docs should be updated (or better, the floats should be abandoned).

Best regards,
Arthur C.

_________________________________________________________________
Play online games with your friends with Messenger http://www.join.msn.com/messenger/overview


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSProgressIndicator bug report
      • From: Uli Kusterer <email@hidden>
    • Re: NSProgressIndicator bug report
      • From: "Alan Smith" <email@hidden>
  • Prev by Date: Re: Document object is not being released
  • Next by Date: Re: NSKeyedArchiver not saving as binary data
  • Previous by thread: Re: unsigned long long + id = ???
  • Next by thread: Re: NSProgressIndicator bug report
  • Index(es):
    • Date
    • Thread