X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16c81607bfe8b01224ab42a842be208acf74abdd..3f93a7508ea292a0ba836eefcccf20a716eaf135:/src/cocoa/checkbox.mm diff --git a/src/cocoa/checkbox.mm b/src/cocoa/checkbox.mm index d5f21852a6..13ee14009c 100644 --- a/src/cocoa/checkbox.mm +++ b/src/cocoa/checkbox.mm @@ -136,4 +136,9 @@ void wxCheckBox::Cocoa_wxNSButtonAction(void) Command(event); } -#endif \ No newline at end of file +void wxCheckBox::SetLabel(const wxString& s) +{ + wxAutoNSAutoreleasePool pool; + [GetNSButton() setTitle:wxNSStringWithWxString(s)]; +} +#endif