Re: PDFView focus ring
Re: PDFView focus ring
- Subject: Re: PDFView focus ring
- From: Sean McBride <email@hidden>
- Date: Thu, 02 Feb 2012 11:34:31 -0500
- Organization: Rogue Research Inc.
On Thu, 2 Feb 2012 09:05:14 +1100, Graham Cox said:
>Some views don't actually implement a focus ring, leaving it to you.
>This is often the case if the view is typically used for content within
>a scrollview. Bear in mind also that the focus ring is drawn outside the
>frame of the view, so there has to be a) space available to draw it, and
>b) code there to do that drawing outside the view. These are things you
>might want to check. If necessary, you may have to subclass the view and
>add the focus ring yourself.
In 10.7, there is new API to make focus ring drawing easier. See:
<http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html>
I've been experimenting with it, and it works great, though I have seen it frequently appear as an offender when profiling with Instruments.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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