Didn't you have the API reference in Xcode ?

+[NSColor setIgnoresAlpha:];

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html#/ /apple_ref/occ/clm/NSColor/setIgnoresAlpha:

If the application doesn't support alpha, no opacity slider is displayed in the color panel, and colors dragged in or pasted have their alpha values set to 1.0. Applications that need to import alpha can invoke this method with flag set to NO and explicitly make colors opaque in cases where it matters to them. Note that calling this with a value of YES overrides any value set with the NSColorPanel method setShowsAlpha:.


Le 13 nov. 08 à 22:41, Jean-Nicolas Jolivet a écrit :

Somehow I was able to have the opacity displayed by using:

[NSColor setIgnoresAlpha:NO];

In my awakeFromNib...

However, I have no idea why/how it is working... is this setting global for the whole app?

JNJ

On 13-Nov-08, at 4:35 PM, Jean-Nicolas Jolivet wrote:

I have an NSColorWell which I bound to an NSColor object of my controller, however for some reasons, the color well does not display an Opacity slider when used in the application... (It does display it if I change the color in IB though)...

Is there a way I can force the NSColorWell to display its opacity slider?

Jean-Nicolas Jolivet
_______________________________________________

Cocoa-dev mailing list ([email protected])

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/silvertab%40videotron.ca

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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/devlists%40shadowlab.org

This email sent to [EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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