X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8fdb345a0467b910260af935353b360bfcbd4f0..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/osx/carbon/colordlgosx.mm diff --git a/src/osx/carbon/colordlgosx.mm b/src/osx/carbon/colordlgosx.mm index 067e5b413c..c44060037d 100644 --- a/src/osx/carbon/colordlgosx.mm +++ b/src/osx/carbon/colordlgosx.mm @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/osx/carbon/colordlg.mm +// Name: src/osx/carbon/colordlgosx.mm // Purpose: wxColourDialog class. NOTE: you can use the generic class // if you wish, instead of implementing this. // Author: Ryan Norton @@ -20,7 +20,7 @@ #include "wx/wxprec.h" -#include "wx/osx/colordlg.h" +#include "wx/colordlg.h" #include "wx/fontdlg.h" // ============================================================================ @@ -56,7 +56,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog) - (id)init { - [super init]; + self = [super init]; m_bIsClosed = false; return self; @@ -141,6 +141,7 @@ int wxColourDialog::ShowModal() // // Start the color panel modal loop // + wxDialog::OSXBeginModalDialog(); NSModalSession session = [NSApp beginModalSessionForWindow:theColorPanel]; for (;;) { @@ -151,6 +152,7 @@ int wxColourDialog::ShowModal() break; } [NSApp endModalSession:session]; + wxDialog::OSXEndModalDialog(); //free up the memory for the delegates - we don't need them anymore [theColorPanel setDelegate:nil];