• 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 and alpha
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSColorWell and alpha


  • Subject: Re: NSColorWell and alpha
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 2 Jun 2008 13:14:25 -0400
  • Organization: Rogue Research

Also note NSColor's setIgnoresAlpha:, especially the last sentence.

"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:."


On 6/1/08 9:33 AM, Ken Ferry said:

>This is controlled by -[NSColorPanel setShowsAlpha:].
>
>Try calling [[NSColorPanel sharedColorPanel] setShowsAlpha:YES].
>
>-Ken
>
>On Sun, Jun 1, 2008 at 9:23 AM, Mike <email@hidden> wrote:
>> I have NSColorWell on my form bind to NSColor property in my
>> Controller-object.
>> In IB there is an alpha-slider available in  that colorwell to modify color
>> opacity value but during runtime there isn't such.
>> Is that bydesign or am I missing something?

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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 and alpha (From: Mike <email@hidden>)
 >Re: NSColorWell and alpha (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: Converting string to double: NSString or NSScanner
  • Next by Date: Re: many-to-many relationships and retain cycles
  • Previous by thread: Re: NSColorWell and alpha
  • Next by thread: Re: Alert Sheets hard wired in Interface Builder
  • Index(es):
    • Date
    • Thread