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