Re: defining NSColor constants
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