Use sheets for native file dialogs if the dialog has its parent set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -277,6 +277,24 @@ protected :
|
||||
|
||||
void WXDLLIMPEXP_CORE wxOSXCocoaClassAddWXMethods(Class c);
|
||||
|
||||
/*
|
||||
We need this for ShowModal, as the sheet just disables the parent window and
|
||||
returns control to the app, whereas we don't want to return from ShowModal
|
||||
until the sheet has been dismissed.
|
||||
*/
|
||||
@interface ModalDialogDelegate : NSObject
|
||||
{
|
||||
BOOL sheetFinished;
|
||||
int resultCode;
|
||||
}
|
||||
|
||||
- (BOOL)finished;
|
||||
- (int)code;
|
||||
- (void)waitForSheetToFinish;
|
||||
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
||||
@end
|
||||
|
||||
|
||||
#endif // __OBJC__
|
||||
|
||||
// NSCursor
|
||||
|
Reference in New Issue
Block a user