X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa67a27af195f1f258c40f35a19dd2ade1ce80d8..eea4d01c65f9b29baa1193db762b4c6b8144af24:/src/cocoa/statbox.mm diff --git a/src/cocoa/statbox.mm b/src/cocoa/statbox.mm index 6bfc8111dd..ac443b5aa0 100644 --- a/src/cocoa/statbox.mm +++ b/src/cocoa/statbox.mm @@ -6,7 +6,7 @@ // Created: 2003/02/15 // RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -23,7 +23,6 @@ #import #import -IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) BEGIN_EVENT_TABLE(wxStaticBox, wxStaticBoxBase) END_EVENT_TABLE() WX_IMPLEMENT_COCOA_OWNER(wxStaticBox,NSBox,NSView,NSView) @@ -37,7 +36,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid, return false; m_cocoaNSView = NULL; SetNSBox([[NSBox alloc] initWithFrame:MakeDefaultNSRect(size)]); - [GetNSBox() setTitle:wxNSStringWithWxString(GetLabelText(title))]; + CocoaSetLabelForObject(title, GetNSBox()); if(m_parent) m_parent->CocoaAddChild(this); SetInitialFrameRect(pos,size); @@ -67,7 +66,7 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const void wxStaticBox::SetLabel(const wxString& label) { wxAutoNSAutoreleasePool pool; - [GetNSBox() setTitle:wxNSStringWithWxString(label)]; + CocoaSetLabelForObject(label, GetNSBox()); } wxString wxStaticBox::GetLabel() const