OSErr err = noErr;
Boolean accepted;
wxOSXPrintData* nativeData = (wxOSXPrintData*)m_printDialogData.GetPrintData().GetNativeData();
+ wxDialog::OSXBeginModalDialog();
err = PMSessionPrintDialog(nativeData->GetPrintSession(), nativeData->GetPrintSettings(),
nativeData->GetPageFormat(), &accepted );
+ wxDialog::OSXEndModalDialog();
if ((err == noErr) && !accepted)
{
OSErr err = noErr;
Boolean accepted;
+ wxDialog::OSXBeginModalDialog();
err = PMSessionPageSetupDialog( nativeData->GetPrintSession(), nativeData->GetPageFormat(),
&accepted );
+ wxDialog::OSXEndModalDialog();
if ((err == noErr) && !accepted)
{