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: Wed, 09 Jan 2013 10:42:01 +0100
On Jan 9, 2013, at 09:25 AM, Kyle Sluder <email@hidden> wrote:
> On Jan 8, 2013, at 11:43 PM, Martin Hewitson <email@hidden> wrote:
>
>> Some interesting points/problems
>>
>> - if I use -drawPage: instead, then the focus ring has the wrong size and overlaps the displayed pages. Don't know why.
>> - doing this in -drawPage: or -drawPagePost: solves the issue I was having
>> - using [self bounds] rather than [[self documentView] bounds] produces no visible focus ring
>
> The documentation strongly implies that -drawPage: is called with a graphics context that's been set up for drawing in the page's coordinate space, whereas -drawPagePost: is documented to do its drawing in the PDFView's coordinate space.
Thanks, Kyle. That explains what I see. Somehow I failed to extract those juicy facts from the documentation.
Martin
>
> --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