Dear list, I now have further information on this problem.
I used one of my DTS tickets and I’m now in contact with an Apple engineer. So far it has not been too fruitful - I need to keep repeating that this is not an iOS issue, but an OS X issue. Anyway, I did have one interesting interaction. The engineer suggested I try a particular sample app. That turned out to be for iOS, but I looked further for a PDFView sample app and found "PDF Annotation Editor”. So I downloaded this app, changed the deployment target to 10.6.8, and built it on 10.9 with Xcode 5.0.2. This app doesn’t exhibit the problem when run on 10.6.8! The app is really simple, but I can’t see what’s different between this app and the test app I made. This is obviously an old sample app since it has .nib files. I wonder if that could be the issue?…. After some more work on this, and I managed to confuse the issue even more. I had the Apple sample app "PDF Annotation Editor” working fine on 10.6.8 so I then decided to try to break it in an attempt to discover why it works and my sample app doesn’t. So I started trying to reduce the UI and the code until it broke. After some reductions in the UI and their PDFView subclass it did break. So I started putting the code and UI back (with undo) but I could not get it to work again. So I downloaded the sample app again and changed the deployment target to 10.6.8 and built again. It still doesn’t work on my 10.6.8 machine! Something else: if one uses the context menu on the PDF view to switch to single page mode (not continuous) then you can’t switch pages. There is no next page. Maybe this is a clue? It seems that the PDFView doesn’t know that the document contains more pages, but the scrollview somehow does. Another interesting 'feature' - the thumbnail view in the sample app always seems to work. A mystery… Surely someone else must have hit this problem - either I’m doing something wrong, or anyone who uses a PDFView and builds on 10.9 with a deployment target of 10.6.8 must hit this issue. Hoping for inspiration… Martin On 24 Nov 2013, at 11:47 am, Martin Hewitson <martin.hewit...@aei.mpg.de> wrote: > Following up on this, I was able to compile my test app so that it runs on > 10.6.8. And indeed the bug is still there. Very strange. This is a most > trivial test app - load a pdf into a pdfview. When compiled on 10.9 with > Xcode 5.0.2, the pages of the pdf do not refresh when scrolling (they remain > blank) on 10.6.8. I tried enabling and disabling the core animation layer > for the PDFView and also its superview, but to no effect. > > I guess it’s time to use a DTS ticket. > > Cheers, > > Martin > > > On 16 Nov 2013, at 08:01 am, Martin Hewitson <martin.hewit...@aei.mpg.de> > wrote: > >> Michael, >> >> Thanks for the clue. On closer inspection, I do indeed get those warnings, >> so I deselected those 'base' localisations, and will try this again as soon >> as I have access to a 10.6.8 machine. I’m really hoping that this test app >> shows that the PDFView problem is somehow a bug, because I tried rolling my >> app back to the last version that did work on 10.6.8 (2 point releases ago), >> but the problem persisted. Yet if I download the older version from my >> website then it runs fine on 10.6.8, so it’s clearly a build issue of some >> kind. >> >> Thanks! >> >> Martin >> >> >> On 15 Nov 2013, at 08:54 pm, Michael Babin <mba...@orderndev.com> wrote: >> >>> On Nov 14, 2013, at 7:09 AM, Martin Hewitson <martin.hewit...@aei.mpg.de> >>> wrote: >>> >>>> 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? >>> >>> For the vanilla NSDocument app (created on 10.9 with Xcode 5.0.2), did you >>> remove the Base localization of your xib files (MainMenu and document)? If >>> I build without doing so, I get warnings of the form: >>> >>> "Internationalization of <xib file path> is not available when compiling >>> for targets before Mac OS X 10.8” >>> >>> Trying to run the built application on 10.6.8 produces the results you >>> reported above. Once I removed the Base localization of each xib file, the >>> built application runs without problem on 10.6.8. >>> >>> >>> _______________________________________________ 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