// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+
+#include "wx/toplevel.h"
+
#ifndef WX_PRECOMP
#include "wx/window.h"
- #include "wx/toplevel.h"
#include "wx/menuitem.h"
#include "wx/frame.h"
#include "wx/log.h"
// 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)