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 <martin.hewit...@aei.mpg.de> 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 <martin.hewit...@aei.mpg.de> > 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com