X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/162c4aada632456bd36603c12017bf0f228b88ac..e970653a2d44003d5a21171a27707341771c5c4c:/src/cocoa/dialog.mm diff --git a/src/cocoa/dialog.mm b/src/cocoa/dialog.mm index b82f6f2965..01df17f2c3 100644 --- a/src/cocoa/dialog.mm +++ b/src/cocoa/dialog.mm @@ -18,6 +18,7 @@ #endif //WX_PRECOMP #include "wx/cocoa/autorelease.h" +#include "wx/cocoa/string.h" #import #import @@ -75,6 +76,8 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID winid, // above alloc and thus the retain count will be 1. [m_cocoaNSWindow release]; wxLogDebug("wxDialog m_cocoaNSWindow retainCount=%d",[m_cocoaNSWindow retainCount]); + [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)]; + [m_cocoaNSWindow setHidesOnDeactivate:NO]; return true; } @@ -87,7 +90,7 @@ wxDialog::~wxDialog() DisassociateNSPanel(GetNSPanel()); } -void wxDialog::Cocoa_close(void) +void wxDialog::CocoaDelegate_windowWillClose(void) { m_closed = true; /* Actually, this isn't true anymore */