> 
> 
> 
>> I use numerous colour wells all over my app. Mostly, I want the user to be 
>> able to use different alpha values, so I have enabled the opacity control 
>> for NSColorPanel globally for the app. But there are one or two places where 
>> I don't want that - these are associated with specific colour wells. 
>> 
>> I was surprised to find I couldn't set whether the color panel displayed the 
>> opacity slider depending on which colour well was selected. Can anyone think 
>> of a way I could achieve that? Seems to me that the color well/color panel 
>> communication is a totally closed book - I've already got various 
>> workarounds to overcome other issues with this communication, but with this 
>> one it's looking like I'm going to have to throw out NSColorWell and just do 
>> it myself from scratch. I thought frameworks were supposed to help, not 
>> hinder?
>> 
>> --Graham
>> _______________________________________________
>> 
> Configure the panel with...
> setShowsAlpha: NO
> 
> 
NSColor itself also has 
setIgnoresAlpha:NO
To override when you don't have the panel configured. But of course the panel 
configuration is the more user-friendly approach. 


_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to