X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83437648602497778e3db21775ca171f3f40705e..88f23fdd8366d57d15cba42d152539ff9ccbdd39:/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