• 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: NSShadow with [bezierPath addClip]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSShadow with [bezierPath addClip]


  • Subject: Re: NSShadow with [bezierPath addClip]
  • From: Gordon Apple <email@hidden>
  • Date: Fri, 03 Jan 2014 17:14:21 -0500
  • Thread-topic: NSShadow with [bezierPath addClip]

Whoa!  I fired that off without thinking.  The problem was with
AVCapturePreviewLayer, not AVPlayerLayer.  I logged that and apparently it
sets it to YES internally.  I set it to NO and am now getting a shadow for
the unmasked version.  However, I do (optionally) apply a shaped masking
layer, which kills the shadow.  If I remember correctly, I did not have this
problem with QTCapturePreviewLayer using the same code.  But at least now, I
have something to look into.  Thanks.


On 1/3/14 4:29 PM, "Gordon Apple" <email@hidden> wrote:

> The default of masksToBounds in CALayer is NO.  I had my subclass of
> AVPlayerLayer log it, and it does show it is still NO.
>
> On 1/3/14 3:18 PM, "David Duncan" <email@hidden> wrote:
>
>> On Jan 3, 2014, at 11:09 AM, Gordon Apple <email@hidden> wrote:
>>
>>> David,
>>>
>>> Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow,
>>> when there is no such problem with QTMovieLayer in the same environment...
>>
>> Is masksToBounds set to YES on the layer?
>> --
>> David Duncan
>>
>>
>


_______________________________________________

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: 
 >Re: NSShadow with [bezierPath addClip] (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: NSShadow with [bezierPath addClip]
  • Next by Date: Re: Memory Leak on UIImage resizableImageWithCapInsets
  • Previous by thread: Re: NSShadow with [bezierPath addClip]
  • Next by thread: Memory Leak on UIImage resizableImageWithCapInsets
  • Index(es):
    • Date
    • Thread