Re: Accessing colours in NSColorPanel swatch
Re: Accessing colours in NSColorPanel swatch
- Subject: Re: Accessing colours in NSColorPanel swatch
- From: Keith Blount <email@hidden>
- Date: Sat, 24 May 2008 04:10:00 -0700 (PDT)
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
_______________________________________________
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