X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065e208ec09e3d08d51d9604497f92f53c210f93..4d931bcca003e3616204c1eebc218ec6cd5b7029:/src/cocoa/checkbox.mm diff --git a/src/cocoa/checkbox.mm b/src/cocoa/checkbox.mm index 07f7332b90..13ee14009c 100644 --- a/src/cocoa/checkbox.mm +++ b/src/cocoa/checkbox.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_CHECKBOX + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" @@ -133,3 +136,9 @@ void wxCheckBox::Cocoa_wxNSButtonAction(void) Command(event); } +void wxCheckBox::SetLabel(const wxString& s) +{ + wxAutoNSAutoreleasePool pool; + [GetNSButton() setTitle:wxNSStringWithWxString(s)]; +} +#endif