Re: Focus ring and layer-backed views

2013-03-04 Thread Oleg Krupnov
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 ap

Re: Focus ring and layer-backed views

2013-03-01 Thread Kyle Sluder
On Mar 1, 2013, at 1:26 AM, Oleg Krupnov 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

Focus ring and layer-backed views

2013-03-01 Thread Oleg Krupnov
I have two custom views in a container view. The first view is a custom layer-hosting view, the second one is an ordinary custom view without layers. Both views can have keyboard focus and draw focus rings around themselves. As usual, the focus ring is drawn partially on the superview. In the fir