]> git.saurik.com Git - wxWidgets.git/commitdiff
implement Set/GetTitle() (last part of patch 1679337)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Mar 2007 13:39:30 +0000 (13:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Mar 2007 13:39:30 +0000 (13:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/toplevel.mm

index 842251756bbb115b65e458decc623c2a738b1ac0..c6bbd3831988250178c5a74b38c1e876c5c49c49 100644 (file)
@@ -144,7 +144,7 @@ bool wxTopLevelWindowCocoa::Create(wxWindow *parent,
         [m_cocoaNSWindow setExcludedFromWindowsMenu: YES];
     if(style & wxSTAY_ON_TOP)
         [m_cocoaNSWindow setLevel:NSFloatingWindowLevel];
         [m_cocoaNSWindow setExcludedFromWindowsMenu: YES];
     if(style & wxSTAY_ON_TOP)
         [m_cocoaNSWindow setLevel:NSFloatingWindowLevel];
-    [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)];
+    SetTitle(title);
     return true;
 }
 
     return true;
 }
 
@@ -334,13 +334,12 @@ void wxTopLevelWindowCocoa::OnCloseWindow(wxCloseEvent& event)
 
 void wxTopLevelWindowCocoa::SetTitle( const wxString& WXUNUSED(title))
 {
 
 void wxTopLevelWindowCocoa::SetTitle( const wxString& WXUNUSED(title))
 {
-    // TODO
+    [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)];
 }
 
 wxString wxTopLevelWindowCocoa::GetTitle() const
 {
 }
 
 wxString wxTopLevelWindowCocoa::GetTitle() const
 {
-    // TODO
-    return wxEmptyString;
+    return wxStringWithNSString([m_cocoaNSWindow title]);
 }
 
 bool wxTopLevelWindowCocoa::ShowFullScreen(bool show, long style)
 }
 
 bool wxTopLevelWindowCocoa::ShowFullScreen(bool show, long style)