• 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: Layer hosting custom NSView and setAlphaValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Layer hosting custom NSView and setAlphaValue


  • Subject: Re: Layer hosting custom NSView and setAlphaValue
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 14 May 2012 13:27:24 -0700

On May 14, 2012, at 1:14 PM, Markus Spoettl <email@hidden> wrote:

> On 5/14/12 8:23 PM, Kyle Sluder wrote:
>> On May 14, 2012, at 11:22 AM, Corbin Dunn wrote:
>>
>>> No, it is not a bug -- unfortunately, we can't make certain things go cross
>>> boundaries from non-layer backed to layer backed.
>>>
>>> This has an easy solution: layer back the container.
>>
>> I assumed that Markus was already doing this, since -setAlphaValue: is
>> documented to throw an exception if your view isn't already layer-backed.
>
> I wasn't, and I was puzzled by this as well. I assumed the comment about the exception was a documentation left-over from earlier SDK releases. It definitely doesn't throw an exception when used on non-layer backed views.

Yeah, one can change the alpha value when not using layers. I guess this slipped through the cracks, as it has worked for a while. We draw the view (and children) into an image and then composite that for the real drawing.

Definitely log a documentation bug asking to clarify this.

corbin


>
> Regards
> Markus
> --
> __________________________________________
> Markus Spoettl


_______________________________________________

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: 
 >Layer hosting custom NSView and setAlphaValue (From: Markus Spoettl <email@hidden>)
 >Re: Layer hosting custom NSView and setAlphaValue (From: Corbin Dunn <email@hidden>)
 >Re: Layer hosting custom NSView and setAlphaValue (From: Markus Spoettl <email@hidden>)
 >Re: Layer hosting custom NSView and setAlphaValue (From: Kyle Sluder <email@hidden>)
 >Re: Layer hosting custom NSView and setAlphaValue (From: Corbin Dunn <email@hidden>)
 >Re: Layer hosting custom NSView and setAlphaValue (From: Kyle Sluder <email@hidden>)
 >Re: Layer hosting custom NSView and setAlphaValue (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Layer hosting custom NSView and setAlphaValue
  • Next by Date: Re: NSViewAnimation reversed when using NSAnimationEaseOut
  • Previous by thread: Re: Layer hosting custom NSView and setAlphaValue
  • Next by thread: Re: Layer hosting custom NSView and setAlphaValue
  • Index(es):
    • Date
    • Thread