X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa67a27af195f1f258c40f35a19dd2ade1ce80d8..4cd4a9ff70cdfdfc054747d7dae6101da3f94c03:/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