• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PDFView drawPage called often after selecting text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: PDFView drawPage called often after selecting text
      • From: Martin Hewitson <email@hidden>
References: 
 >PDFView drawPage called often after selecting text (From: Martin Hewitson <email@hidden>)
 >Re: PDFView drawPage called often after selecting text (From: Martin Hewitson <email@hidden>)
 >Re: PDFView drawPage called often after selecting text (From: Andy Lee <email@hidden>)
 >Re: PDFView drawPage called often after selecting text (From: Martin Hewitson <email@hidden>)
 >Re: PDFView drawPage called often after selecting text (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: PDFView drawPage called often after selecting text
  • Next by Date: Re: PDFView drawPage called often after selecting text
  • Previous by thread: Re: PDFView drawPage called often after selecting text
  • Next by thread: Re: PDFView drawPage called often after selecting text
  • Index(es):
    • Date
    • Thread