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 PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to