Re: PDFView drawPage called often after selecting text
Re: PDFView drawPage called often after selecting text
- Subject: Re: PDFView drawPage called often after selecting text
- From: Kyle Sluder <email@hidden>
- Date: Tue, 08 Jan 2013 08:22:59 -0800
On Tue, Jan 8, 2013, at 07:58 AM, Andy Lee wrote:
> You're already calling setKeyboardFocusRingNeedsDisplayInRect: in
> become/resignFirstResponder, which seems like the right place. But I
> notice Apple's "Dicey" example project uses NSSetFocusRingStyle
> differently than you do. It pushes and pops the graphics state -- and
> thus, I believe, the clipping region -- instead of doing lockFocus on the
> superview. I bet this is how it avoids the infinite invalidating.
Well, pushing the graphics state isn't going to reset the clipping rect,
and -lockFocus pushes a new graphics state on the stack anyway.
>
> I think Kyle is suggesting something like what Apple does (taken from
> <http://developer.apple.com/library/mac/#samplecode/Dicey/Listings/DCDie_m.html>):
Yes, this is the approach I am suggesting.
--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