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 (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