• 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: Martin Hewitson <email@hidden>
  • Date: Tue, 08 Jan 2013 07:04:03 +0100

On Jan 7, 2013, at 09:16 PM, Andy Lee <email@hidden> wrote:

> On Jan 7, 2013, at 12:07 PM, Andy Lee <email@hidden> wrote:
>> It does seem weird that drawPage: is getting called when you aren't even interacting with the PDFView.
>
> Come to think of it, this is *really* weird since your drawPage: checks whether the PDFView is first responder -- which it can't be if you're in the middle of typing in the text view. Could it be that something is causing the PDFView to become first responder for an instant?

Seems not. I have an NSLog in the if clause where the NSSetFocusRingStyle is called, and this is not called during the 'fault' state.

> I'm extra curious now to know what happens if you put NSLogs in becomeFirstResponder and resignFirstResponder.

See previous reply.

>
> --Andy (also at risk of having a conversation with myself -- wouldn't be the first time :))
>


It's sometimes very useful :)

Martin




_______________________________________________

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

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: Andy Lee <email@hidden>)

  • Prev by Date: Re: PDFView drawPage called often after selecting text
  • Next by Date: Re: CATextLayer and vectors
  • 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