X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa67a27af195f1f258c40f35a19dd2ade1ce80d8..609577038acc7087a349d06aaf328e0b81a05f22:/src/cocoa/statbox.mm diff --git a/src/cocoa/statbox.mm b/src/cocoa/statbox.mm index 6bfc8111dd..ec23482002 100644 --- a/src/cocoa/statbox.mm +++ b/src/cocoa/statbox.mm @@ -37,7 +37,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 +67,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