[m_cocoaNSView release];
[GetNSButton() setButtonType: NSSwitchButton];
[GetNSButton() setAllowsMixedState: Is3State()];
- [GetNSButton() setTitle:wxNSStringWithWxString(GetLabelText(label))];
+ CocoaSetLabelForObject(label, GetNSButton());
[GetNSControl() sizeToFit];
if(m_parent)
void wxCheckBox::SetLabel(const wxString& s)
{
wxAutoNSAutoreleasePool pool;
- [GetNSButton() setTitle:wxNSStringWithWxString(s)];
+ CocoaSetLabelForObject(s, GetNSButton());
}
wxString wxCheckBox::GetLabel() const