if ( HasFlag(wxFD_OVERWRITE_PROMPT) )
{
}
-
- // avoid multiple event handlers on stack
- if ( 0 /*parentWindow*/)
+
+/*
+ if (parentWindow)
{
NSWindow* nativeParent = parentWindow->GetWXWindow();
ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
[sheetDelegate release];
}
else
+*/
{
returnCode = [sPanel runModalForDirectory:dir.AsNSString() file:file.AsNSString() ];
}
[oPanel setCanChooseFiles:YES];
[oPanel setMessage:cf.AsNSString()];
- // avoid multiple event handlers on stack
- if ( 0 /*parentWindow*/)
+/*
+ if (parentWindow)
{
NSWindow* nativeParent = parentWindow->GetWXWindow();
ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
[sheetDelegate release];
}
else
+*/
{
returnCode = [oPanel runModalForDirectory:dir.AsNSString()
file:file.AsNSString() types:types];