]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/button.mm
minor changes to eliminate unused parameter warning + some cleanup
[wxWidgets.git] / src / cocoa / button.mm
index b8850cf8eec47af93a3cd09bb6ec3b9f2795125e..08d2b9853c2fb61a9fd094c127731b3d6ef0b5a8 100644 (file)
@@ -66,6 +66,16 @@ void wxButton::Cocoa_wxNSButtonAction(void)
     Command(event);
 }
 
+wxString wxButton::GetLabel() const
+{
+    return wxString([[GetNSButton() title] lossyCString]);
+}
+
+void wxButton::SetLabel(const wxString& label)
+{
+    [GetNSButton() setTitle:wxNSStringWithWxString(label)];
+}
+
 wxSize wxButtonBase::GetDefaultSize()
 {
     // FIXME: stub