diff --git a/src/osx/carbon/dcprint.cpp b/src/osx/carbon/dcprint.cpp index 5163f0d17c..9da9504af7 100644 --- a/src/osx/carbon/dcprint.cpp +++ b/src/osx/carbon/dcprint.cpp @@ -120,7 +120,7 @@ wxNativePrinterDC* wxNativePrinterDC::Create(wxPrintData* data) return new wxMacCarbonPrinterDC(data) ; } -bool wxMacCarbonPrinterDC::StartDoc( wxPrinterDC* dc , const wxString& WXUNUSED(message) ) +bool wxMacCarbonPrinterDC::StartDoc( wxPrinterDC* dc , const wxString& message ) { if ( m_err ) return false ; @@ -128,6 +128,11 @@ bool wxMacCarbonPrinterDC::StartDoc( wxPrinterDC* dc , const wxString& WXUNUSED wxPrinterDCImpl *impl = (wxPrinterDCImpl*) dc->GetImpl(); wxMacCarbonPrintData *native = (wxMacCarbonPrintData*) impl->GetPrintData().GetNativeData() ; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 + if ( PMPrintSettingsSetJobName != NULL ) + PMPrintSettingsSetJobName(native->m_macPrintSettings, wxCFStringRef(message)); +#endif + m_err = PMSessionBeginCGDocumentNoDialog(native->m_macPrintSession, native->m_macPrintSettings, native->m_macPageFormat);