• 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: Arie Pieter Cammeraat <email@hidden>
  • Date: Fri, 7 Aug 2009 18:44:46 +0200

Thanks everyone, I'll try your tips.

I almost don't dare to compare, but it's a lot more difficult than in REALBasic to declare a global color. But on the other side... who cares?





Op 6-aug-2009, om 17:27 heeft Sean McBride het volgende geschreven:

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:
40yaranga.nl


This email sent to email@hidden

_______________________________________________

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: Graham Cox <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>)
 >Re: defining NSColor constants (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Disabling Exposé in SystemUIMode
  • Next by Date: Re: Disabling Exposé in SystemUIMode
  • Previous by thread: Re: defining NSColor constants
  • Next by thread: Re: defining NSColor constants
  • Index(es):
    • Date
    • Thread