X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32cd189dfcfe96c41e32c3b9827bf67484c60b13..5a1e0e91a1ca5ec98b0eeb335cda757d1261ed08:/src/cocoa/checkbox.mm diff --git a/src/cocoa/checkbox.mm b/src/cocoa/checkbox.mm index 0e73912c1f..c17d1152fc 100644 --- a/src/cocoa/checkbox.mm +++ b/src/cocoa/checkbox.mm @@ -142,4 +142,12 @@ void wxCheckBox::SetLabel(const wxString& s) wxAutoNSAutoreleasePool pool; [GetNSButton() setTitle:wxNSStringWithWxString(s)]; } -#endif + +wxString wxCheckBox::GetLabel() const +{ + wxAutoNSAutoreleasePool pool; + return wxStringWithNSString([GetNSButton() title]); + +} + +#endif // wxUSE_CHECKBOX