• 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 not rendering pages on scroll
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDFView not rendering pages on scroll


  • Subject: Re: PDFView not rendering pages on scroll
  • From: Martin Hewitson <email@hidden>
  • Date: Thu, 14 Nov 2013 14:09:25 +0100

Continuing the discussion with only myself, so far….

I had the idea to make a trivial test app which just has a PDFView and a “Load” button.

So I created the app on 10.9 with Xcode 5.0.2. It’s just a vanilla NSDocument app with a PDFView and a button. Compiles and runs fine on 10.9.

So then I thought I will change the Deployment Target to 10.6.8, the Base SDK to 10.8, and I switched off auto layout for both the document nib and the main menu nib, and also set them to build for 10.6 and later.

Archived the app and distributed as just an unsigned application.

Copied to the 10.6.8 test machine, and the app won’t run. I get the console error:

"unable to load nib file: MainMenu, exiting”

I then dug through the build settings of the main app that’s giving me these PDFView problems, but I don’t see anything different there. Clearly I’m missing something, can someone spot what it is?

Many thanks,

Martin


On 04 Nov 2013, at 06:33 pm, Martin Hewitson <email@hidden> wrote:

> 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


  • Follow-Ups:
    • Re: PDFView not rendering pages on scroll
      • From: Michael Babin <email@hidden>
References: 
 >PDFView not rendering pages on scroll (From: Martin Hewitson <email@hidden>)
 >Re: PDFView not rendering pages on scroll (From: Martin Hewitson <email@hidden>)

  • Prev by Date: NSArrayController + NSTableView addObject ends editing
  • Next by Date: Re: SKIndexAddDocument crashing
  • Previous by thread: Re: Apple Sample Code WWDC 2010 session 114
  • Next by thread: Re: PDFView not rendering pages on scroll
  • Index(es):
    • Date
    • Thread