[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());
}
-#endif
+
+wxString wxCheckBox::GetLabel() const
+{
+ wxAutoNSAutoreleasePool pool;
+ return wxStringWithNSString([GetNSButton() title]);
+
+}
+
+#endif // wxUSE_CHECKBOX