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: Andy Lee <email@hidden>
- Date: Tue, 08 Jan 2013 08:46:34 -0800
On Jan 8, 2013, at 3:59 AM, Martin Hewitson <email@hidden> wrote:
> Maybe not. I just didn't know about this, but I will read up on it. However, as far as my tests show, -drawRect: is never called on PDFView.
This seemed really odd, so I checked and it turns out there is a view hierarchy under PDFView. When you drop a PDFView into IB you can see it looks a lot like an NSScrollView. I bet it's one of those descendant views that is getting setNeedsDisplay: and drawRect: calls, which is why you didn't see them being called on your PDFView.
--Andy
_______________________________________________
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