Re: PDFView not rendering pages on scroll
Re: PDFView not rendering pages on scroll
- Subject: Re: PDFView not rendering pages on scroll
- From: Martin Hewitson <email@hidden>
- Date: Mon, 04 Nov 2013 18:33:35 +0100
Further info: compiling my app with SDK 10.8 under Xcode 5.0.1 on Mavericks still produces a binary that doesn’t work on 10.6.8 (regarding unrendered pdf pages). How can this be? I have been compiling the app with Xcode 4.* on 10.8 for the last year or more. I’m fairly confident that none of the changes in the app in the last two minor releases have affected this area of code, but I feel like I have to really check that now to be sure. Both of these last two minor releases were compiled on 10.9 with Xcode 5.0.1 and neither works properly on 10.6.8.
Hoping someone has a workaround…
Martin
On 02 Nov 2013, at 08:00 am, Martin Hewitson <email@hidden> wrote:
> Dear list,
>
> I have an app which uses a PDFView to display (not surprisingly) a PDF. If I compile the app with the 10.9 SDK then I see two new 'features':
>
> 1) I implement -drawPagePost: in my PDFView subclass to draw my own highlight/focus ring around the PDF pages. This does not get updated when scrolling whereas it did in previous SDKs
>
> 2) When the app is run on 10.6.8 only the pages visible when the document loads are rendered. On scrolling, the other pages are not rendered.
>
> I’ve tried implementing
>
> +(BOOL) isCompatibleWithResponsiveScrolling {
> return NO;
> }
>
> in my PDFView subclass, but this doesn’t help. I’ve tried disabling various bits of code in my subclass, but so far nothing helps.
>
> I can workaround 1) by listening for bounds changes on the enclosing scroll view’s content view then call -setNeedsDisplay:.
>
> I have found no workaround for 2).
>
> Anyone got any ideas?
>
> 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