Determine colorlist/-name after NSColorPanel
Determine colorlist/-name after NSColorPanel
- Subject: Determine colorlist/-name after NSColorPanel
- From: Matthias Arndt <email@hidden>
- Date: Fri, 6 Mar 2009 18:26:08 +0100
Hi!
I think of redesigning the way colors can be selected in one of my
apps: Currently I use NSPopupButtons an entry for every color and I'd
like to move to NSColorWalls / NSColorPanel with predefined lists.
These lists should represent color palettes, here threads of different
vendors or different materials.
Is there any way to determine if a selected color was picked from a
list? If so, can I identify the list and the color's key (or index)
within this list?
For the user e. g. Red from list A is not the same as Red from list B,
so I need this information ...
Today I tested a bit with "catalogNameComponent" and
"colorNameComponent", but always received an exception. I tried to
convert the selected color into NSNamedColorSpace, but didn't get it
work. Has anybody got an example or a hint?
Any help is appreciated, Mattes
_______________________________________________
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