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

Re: event pressure:


  • Subject: Re: event pressure:
  • From: glenn andreas <email@hidden>
  • Date: Sun, 11 Dec 2005 14:34:03 -0600


On Dec 11, 2005, at 2:31 PM, Jonathan Chetwynd wrote:

NSLog(@"pressure: %d ", [event pressure]);

the output values are far too high: ~ 1080795136 or 1072693248

supposedly between 0 & 1

cheers

Jonathan Chetwynd
Accessible Solutions
http://www.eas-i.co.uk

%d is for integer values, and so it is treating the floating point result as bunch of bits set in an integer.

Try %g instead

Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets

_______________________________________________
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: 
 >event pressure: (From: Jonathan Chetwynd <email@hidden>)

  • Prev by Date: Re: NSWindow backing
  • Next by Date: Re: troubles with a progress bar updating
  • Previous by thread: event pressure:
  • Next by thread: Re: event pressure:
  • Index(es):
    • Date
    • Thread