Re: NSColorWell and alpha values
Re: NSColorWell and alpha values
- Subject: Re: NSColorWell and alpha values
- From: p3consulting <email@hidden>
- Date: Mon, 1 Dec 2003 10:44:04 +0100
On 1 dic. 2003, at 09:53, Jirome Foucher wrote:
Hi all,
I'm trying to use NSColorWell to display a color with an alpha value.
When I set the color using [colorWell setColor:myColorWithAlphaValue]
that works fine. Then control clearly shows the alpha value.
But as soon as I click in the control, the alpha value is ignored (the
color well redraws the color without its alpha value), and moreover,
the color picker that appears does not have any slider to set the
alpha value.
I don't see any method in NSColorWell to specifiy if I want the color
picker to offer an alpha value slider.
What am I doing wrong here ?
Do I have to show the color panel myself ? If so how do I do ?
Both
[[NSColorPanel sharedColorPanel] setShowsAlpha:YES]
and
[NSColor setIgnoresAlpha:NO] (class method !)
have to be called.
Pascal Pochet
P3 Consulting
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.