How to create a color catalog
How to create a color catalog
- Subject: How to create a color catalog
- From: Matthias Arndt <email@hidden>
- Date: Sun, 8 Mar 2009 10:50:36 +0100
I'm still struggling with the problem to identify a color list / name
after picking a color with NSColorPanel. It would be easy to solve if
I could use color catalogs instead of color lists. In [1] the
following is mentioned about NSColorList:
The color lists returned by the availableColorLists method include
color catalogs, made up of colors defined in the NSNamedColorSpace
color space. One example is the System color list, which appears in
the Mac OS X color panel under the name “Developer.” Note, however,
that not all named color lists are catalogs. In general, lists
created at runtime with NSColor and NSColorList methods are not
catalogs.
Fine, ... "in general" ..., but how to create a color list being a
catalog? I googled a lot and searched the developer docs and didn't
find any hint!
Frustrated, Mattes
[1] <http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/DrawColor/Concepts/AboutColorLists.html
>_______________________________________________
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