From e509b9303bd0141143bc6e707f98a72b96d91311 Mon Sep 17 00:00:00 2001 From: Douglas Mencken Date: Thu, 12 Jun 2014 15:05:06 -0400 Subject: fix build error "error: NSPrintJobSavingURL was not declared in this scope" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see commits: c5c317ed20933c6508b35c34039df31669943f1c Change-Id: I3a886bde11dc3620cffeb3e2e579c7b37285d9c5 Reviewed-on: https://gerrit.libreoffice.org/9759 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/osx/salprn.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 9440bb3eec7d..52c090243087 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -462,7 +462,11 @@ bool AquaSalInfoPrinter::StartJob( const OUString* i_pFileName, { [mpPrintInfo setJobDisposition: NSPrintSaveJob]; NSString* pPath = CreateNSString( *i_pFileName ); +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 + [pPrintDict setObject:[NSURL fileURLWithPath:pPath] forKey:NSPrintSavePath]; +#else [pPrintDict setObject:[NSURL fileURLWithPath:pPath] forKey:NSPrintJobSavingURL]; +#endif [pPath release]; } -- cgit v1.2.3