X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83437648602497778e3db21775ca171f3f40705e..350fffae72c078442d6d177d2071e62f2687df9f:/src/cocoa/button.mm diff --git a/src/cocoa/button.mm b/src/cocoa/button.mm index b8850cf8ee..08d2b9853c 100644 --- a/src/cocoa/button.mm +++ b/src/cocoa/button.mm @@ -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