• 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
floats & Color APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

floats & Color APIs


  • Subject: floats & Color APIs
  • From: Eric Gorr <email@hidden>
  • Date: Mon, 23 Oct 2006 14:47:08 -0400

I'm just curious...

What is the reasoning behind moving to floats to represent color in Apple's Cocoa color APIs?

For example,

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSColor_Class/Reference/Reference.html#// apple_ref/occ/instm/NSColor/blueComponent>

Why wasn't 1 byte or even 2 bytes considered to be enough?
Were the reasons purely having to do with the speed of certain calculations?
Is there any reason not to just covert these numbers to single byte components for the purpose of file storage?



_______________________________________________ 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
  • Follow-Ups:
    • Re: floats & Color APIs
      • From: Dietmar Planitzer <email@hidden>
    • Re: floats & Color APIs
      • From: glenn andreas <email@hidden>
    • Re: floats & Color APIs
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Search fast in NSDictionary
  • Next by Date: Re: some crash i can not explain.
  • Previous by thread: Re: some crash i can not explain.
  • Next by thread: Re: floats & Color APIs
  • Index(es):
    • Date
    • Thread