- wxLogTrace(wxTRACE_COCOA,wxT("wxRadioButton"));
- if(m_radioMaster && ([GetNSButton() state] == NSOnState))
+ wxAutoNSAutoreleasePool pool;
+ CocoaSetLabelForObject(label, GetNSButton());
+}
+
+wxString wxRadioButton::GetLabel() const
+{
+ return wxStringWithNSString([GetNSButton() title]);
+}
+
+/**
+ * If this radio button is part of a group, this method turns off every other
+ * button in the group. If this radio button is not part of a group, this
+ * method does absolutely nothing.
+ */
+void wxRadioButton::Cocoa_DeselectOtherButtonsInTheGroup(void)
+{
+ if(m_radioMaster)