NSColorPanel picker mask
NSColorPanel picker mask
- Subject: NSColorPanel picker mask
- From: Ivy Feraco <email@hidden>
- Date: Fri, 29 Aug 2008 09:50:25 -0400
Hello
I am having trouble customizing NSColorPanel.
I want the user to be able to pick colors for parts of the app using
color wells.
But I need to have some color wells only allow grayscale while others
can be set to the full range of color.
My solution for this was to have the NSColorPanel sometimes show all
pickers and modes, while others would be confined to the grayscale mode.
It seems the only way I can create a grayscale-only picker (where the
user has no color options) is by calling setPickerMask with a value
NSColorPanelGrayModeMask.
But setPickerMask can only be called once before the shared instance
is ever created.
Any ideas around this?
I do have a solution that seems so work, where the sharedColorPanel
gets destroyed so setPickerMask can be called again, but I'm wary of
memory issues and this just seems silly.
Thanks!
Ivy Feraco
UI Developer
email@hidden
_______________________________________________
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