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: Sat, 16 Nov 2013 08:01:23 +0100
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 <email@hidden> wrote:
> On Nov 14, 2013, at 7:09 AM, Martin Hewitson <email@hidden> 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.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
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