• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSColorWell opacity...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSColorWell opacity...


  • Subject: Re: NSColorWell opacity...
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 13 Nov 2008 22:46:40 +0100

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@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:
This email sent to 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:
This email sent to 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:
This email sent to email@hidden


References: 
 >NSColorWell opacity... (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: NSColorWell opacity... (From: Jean-Nicolas Jolivet <email@hidden>)

  • Prev by Date: Re: NSColorWell opacity...
  • Next by Date: Model mapping crash
  • Previous by thread: Re: NSColorWell opacity...
  • Next by thread: Model mapping crash
  • Index(es):
    • Date
    • Thread