• 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: defining NSColor constants
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defining NSColor constants


  • Subject: Re: defining NSColor constants
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 6 Aug 2009 11:27:56 -0400
  • Organization: Rogue Research Inc.

On 8/6/09 8:38 PM, Graham Cox said:

>Then add a class method to NSColor in a category:
>
>+ (NSColor*)	calibratedRGBColorWithValues:(const float*) values;

Nitpick: use CGFloat instead of float to match NSColor.  Especially
since you're passing an array of float/doubles.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: defining NSColor constants
      • From: Arie Pieter Cammeraat <email@hidden>
References: 
 >defining NSColor constants (From: Arie Pieter Cammeraat <email@hidden>)
 >Re: defining NSColor constants (From: Alastair Houghton <email@hidden>)
 >Re: defining NSColor constants (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString
  • Next by Date: Re: [iPhone] networking
  • Previous by thread: Re: defining NSColor constants
  • Next by thread: Re: defining NSColor constants
  • Index(es):
    • Date
    • Thread