• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Determine colorlist/-name after NSColorPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Determine colorlist/-name after NSColorPanel
      • From: Matthias Arndt <email@hidden>
  • Prev by Date: Re: NSStatusItem when clicked shows custom view
  • Next by Date: Re: Newbie query re notifications -- SOLVED
  • Previous by thread: Re: interpretKeyEvents not handling HOME and END keys?
  • Next by thread: Re: Determine colorlist/-name after NSColorPanel
  • Index(es):
    • Date
    • Thread