diff --git a/src/cocoa/toplevel.mm b/src/cocoa/toplevel.mm index 1e4542e819..b0fa9cd74e 100644 --- a/src/cocoa/toplevel.mm +++ b/src/cocoa/toplevel.mm @@ -149,7 +149,7 @@ bool wxTopLevelWindowCocoa::Create(wxWindow *parent, [m_cocoaNSWindow setExcludedFromWindowsMenu: YES]; if(style & wxSTAY_ON_TOP) [m_cocoaNSWindow setLevel:NSFloatingWindowLevel]; - [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)]; + SetTitle(title); return true; } @@ -341,13 +341,12 @@ void wxTopLevelWindowCocoa::OnCloseWindow(wxCloseEvent& event) void wxTopLevelWindowCocoa::SetTitle( const wxString& WXUNUSED(title)) { - // TODO + [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)]; } wxString wxTopLevelWindowCocoa::GetTitle() const { - // TODO - return wxEmptyString; + return wxStringWithNSString([m_cocoaNSWindow title]); } wxWindow* wxTopLevelWindowCocoa::SetDefaultItem(wxWindow *win)