FROM : Keith Blount
DATE : Sat May 24 13:10:00 2008
Just for the archives, I found the solution to this on CocoaDev (which I had missed in my original search). Unfortunately it uses private methods, but I wrote an NSColorPanel category to access the swatch colours that should fail safely if the private methods are changed. I've added the category to the CocoaDev page here:
http://www.cocoadev.com/index.pl?NSColorPanel
Thanks anyway,
Keith
-- ORIGINAL MESSAGE --
> I can't seem to find anything on this in the docs for NSColorPanel, NSColorList, or the "working with colors"
> documentation, but is there any way to access the user-defined list of colours in NSColorPanel? I mean the
> custom colours that the user drags into the swatch at the bottom of the colour panel for frequent use. I would
> like to provide a contextual menu in my application that makes these colours immediately available to the user,
> so that the user doesn't always have to open the colour panel to access the colours he or she has defined.
>
> Maybe I'm missing something obvious, but I would be very grateful for a point in the right direction.
>
> Many thanks in advance and all the best,
> Keith
DATE : Sat May 24 13:10:00 2008
Just for the archives, I found the solution to this on CocoaDev (which I had missed in my original search). Unfortunately it uses private methods, but I wrote an NSColorPanel category to access the swatch colours that should fail safely if the private methods are changed. I've added the category to the CocoaDev page here:
http://www.cocoadev.com/index.pl?NSColorPanel
Thanks anyway,
Keith
-- ORIGINAL MESSAGE --
> I can't seem to find anything on this in the docs for NSColorPanel, NSColorList, or the "working with colors"
> documentation, but is there any way to access the user-defined list of colours in NSColorPanel? I mean the
> custom colours that the user drags into the swatch at the bottom of the colour panel for frequent use. I would
> like to provide a contextual menu in my application that makes these colours immediately available to the user,
> so that the user doesn't always have to open the colour panel to access the colours he or she has defined.
>
> Maybe I'm missing something obvious, but I would be very grateful for a point in the right direction.
>
> Many thanks in advance and all the best,
> Keith
| Related mails | Author | Date |
|---|---|---|
| Keith Blount | May 23, 20:00 | |
| Keith Blount | May 24, 13:10 |






Cocoa mail archive

