• 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: Focus ring and layer-backed views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Focus ring and layer-backed views


  • Subject: Re: Focus ring and layer-backed views
  • From: Oleg Krupnov <email@hidden>
  • Date: Tue, 05 Mar 2013 07:29:33 +0200

Thanks Kyle,

This is almost perfectly what I need!

However, one problem I've found is with custom layer-hosting controls.
Suppose my control consists of two segments. Each segment is
represented with a child CALayer. Now I want the focus ring to contour
only one segment. In this case, the ring appears below the child
CALayer. In other words, the focus ring is only visible on the
background layer and outside of the control, but appears obscured by
child CALayers. Is there any workaround to make it on top of all
layers?

On Fri, Mar 1, 2013 at 6:33 PM, Kyle Sluder <email@hidden> wrote:
> On Mar 1, 2013, at 1:26 AM, Oleg Krupnov <email@hidden> wrote:
>
>>
>> It seems like a known problem. Is there some workaround?
>
> This is why Apple added the -drawFocusRingMask API. Try using that instead of drawing the focus ring manually.
>
> --Kyle Sluder
_______________________________________________

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: 
 >Focus ring and layer-backed views (From: Oleg Krupnov <email@hidden>)
 >Re: Focus ring and layer-backed views (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: getting ivar of fundamental types with object_getInstanceValue
  • Next by Date: Re: getting ivar of fundamental types with object_getInstanceValue
  • Previous by thread: Re: Focus ring and layer-backed views
  • Next by thread: Re: 2 icons showing in dock
  • Index(es):
    • Date
    • Thread