X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cadbf2a8e41a9ec9a6f8450dc263ba31d0d6abf4..5cce8340b28be2eecea1822434eeff7055840f9c:/src/cocoa/checkbox.mm?ds=sidebyside diff --git a/src/cocoa/checkbox.mm b/src/cocoa/checkbox.mm index c75820d257..13ee14009c 100644 --- a/src/cocoa/checkbox.mm +++ b/src/cocoa/checkbox.mm @@ -136,4 +136,9 @@ void wxCheckBox::Cocoa_wxNSButtonAction(void) Command(event); } +void wxCheckBox::SetLabel(const wxString& s) +{ + wxAutoNSAutoreleasePool pool; + [GetNSButton() setTitle:wxNSStringWithWxString(s)]; +} #endif