Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorPanel picker mask



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.