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 <k...@ksluder.com> wrote: > On Mar 1, 2013, at 1:26 AM, Oleg Krupnov <oleg.krup...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com