X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65aeaf19f6781193697d28f868901a80ee623396..39e00125e5aa8e868092aecab9030e9e9236f3c0:/src/cocoa/toplevel.mm diff --git a/src/cocoa/toplevel.mm b/src/cocoa/toplevel.mm index c6bbd38319..1a5379ff52 100644 --- a/src/cocoa/toplevel.mm +++ b/src/cocoa/toplevel.mm @@ -144,7 +144,7 @@ bool wxTopLevelWindowCocoa::Create(wxWindow *parent, [m_cocoaNSWindow setExcludedFromWindowsMenu: YES]; if(style & wxSTAY_ON_TOP) [m_cocoaNSWindow setLevel:NSFloatingWindowLevel]; - SetTitle(title); + [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)]; return true; } @@ -332,7 +332,7 @@ void wxTopLevelWindowCocoa::OnCloseWindow(wxCloseEvent& event) // wxTopLevelWindowCocoa misc // ---------------------------------------------------------------------------- -void wxTopLevelWindowCocoa::SetTitle( const wxString& WXUNUSED(title)) +void wxTopLevelWindowCocoa::SetTitle(const wxString& title) { [m_cocoaNSWindow setTitle:wxNSStringWithWxString(title)]; }