]> git.saurik.com Git - wxWidgets.git/commitdiff
* Set the window's title
authorDavid Elliott <dfe@tgwbd.org>
Fri, 5 Sep 2003 02:53:39 +0000 (02:53 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 5 Sep 2003 02:53:39 +0000 (02:53 +0000)
* setHidesOnDeactivate: NO

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/dialog.mm

index b82f6f29650accb6edae13303f717e2c2db9a81b..d4d2c51fd6b7bf26763a9224ec2d665465056abe 100644 (file)
@@ -18,6 +18,7 @@
 #endif //WX_PRECOMP
 
 #include "wx/cocoa/autorelease.h"
+#include "wx/cocoa/string.h"
 
 #import <AppKit/NSPanel.h>
 #import <AppKit/NSApplication.h>
@@ -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;
 }