X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16c81607bfe8b01224ab42a842be208acf74abdd..f94a81c084696210418b8709e8ab649a18465fa6:/src/cocoa/checkbox.mm?ds=inline 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