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                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev% 40yaranga.nl

This email sent to cocoa-...@yaranga.nl

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to