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 (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

Reply via email to