]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/toplevel.mm
don't skip the scroll position validity check in CalcScrollInc() if m_[xy]ScrollPixel...
[wxWidgets.git] / src / cocoa / toplevel.mm
index 842251756bbb115b65e458decc623c2a738b1ac0..1a5379ff5290992be112e8699a304870384b545e 100644 (file)
@@ -332,15 +332,14 @@ void wxTopLevelWindowCocoa::OnCloseWindow(wxCloseEvent& event)
 // wxTopLevelWindowCocoa misc
 // ----------------------------------------------------------------------------
 
-void wxTopLevelWindowCocoa::SetTitle( const wxString& WXUNUSED(title))
+void wxTopLevelWindowCocoa::SetTitle(const wxString& title)
 {
-    // TODO
+    [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)];
 }
 
 wxString wxTopLevelWindowCocoa::GetTitle() const
 {
-    // TODO
-    return wxEmptyString;
+    return wxStringWithNSString([m_cocoaNSWindow title]);
 }
 
 bool wxTopLevelWindowCocoa::ShowFullScreen(bool show, long style)