]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/printdlg.mm
Use sheets for native file dialogs if the dialog has its parent set.
[wxWidgets.git] / src / osx / cocoa / printdlg.mm
index b2c577e0153207767a0976720a84db2df39da5f1..d10cea723a970cd1fbd07a3827a3ae52966ac729 100644 (file)
@@ -67,7 +67,7 @@ int wxMacPrintDialog::ShowModal()
     
     NSPrintPanel* panel = [NSPrintPanel printPanel];
     NSPrintInfo* printInfo = ((wxOSXCocoaPrintData*)m_printDialogData.GetPrintData().GetNativeData())->GetNSPrintInfo();
-    if ( [panel runModalWithPrintInfo:printInfo] == NSOKButton )
+    if ( (NSInteger)[panel runModalWithPrintInfo:printInfo] == NSOKButton )
     {
         result = wxID_OK;
         m_printDialogData.GetPrintData().ConvertFromNative();