Re: Focus ring and layer-backed views
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