Replace deprecated API usage for window modal dialogs
Remove the delegate objects that are not used any longer. Move wxGetAvailableDrives() to Objective-C code file dirdlg.mm to allow for Cocoa implementation.
This commit is contained in:
committed by
Vadim Zeitlin
parent
be9216b6b1
commit
220dfe17ea
@@ -61,8 +61,6 @@ private:
|
||||
// Create and initialize NSOpenPanel that we use in both ShowModal() and
|
||||
// ShowWindowModal().
|
||||
WX_NSOpenPanel OSXCreatePanel() const;
|
||||
|
||||
WX_NSObject m_sheetDelegate;
|
||||
#endif
|
||||
|
||||
// Common part of all ctors.
|
||||
|
@@ -94,8 +94,6 @@ protected:
|
||||
bool m_useFileTypeFilter;
|
||||
int m_firstFileTypeFilter;
|
||||
wxArrayString m_currentExtensions;
|
||||
WX_NSObject m_delegate;
|
||||
WX_NSObject m_sheetDelegate;
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
@@ -45,9 +45,6 @@ protected:
|
||||
int m_buttonId[4];
|
||||
int m_buttonCount;
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
WX_NSObject m_sheetDelegate;
|
||||
#endif
|
||||
wxDECLARE_DYNAMIC_CLASS(wxMessageDialog);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user