X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2465458c06734482c89d891114a7f113f8724eb9..c2331d9b50dffbd3f2c0caf06b514fd4c96b3b94:/src/cocoa/control.mm diff --git a/src/cocoa/control.mm b/src/cocoa/control.mm index 475a372d5e..9fabb68103 100644 --- a/src/cocoa/control.mm +++ b/src/cocoa/control.mm @@ -18,6 +18,7 @@ #endif #include "wx/cocoa/autorelease.h" +#include "wx/cocoa/string.h" #include "wx/cocoa/trackingrectmanager.h" #include "wx/cocoa/objc/objc_uniquifying.h" @@ -253,3 +254,9 @@ void wxControl::CocoaSetEnabled(bool enable) { [GetNSControl() setEnabled: enable]; } + +/*static*/ void wxControl::CocoaSetLabelForObject(const wxString& label, struct objc_object *aView) +{ + [aView setTitle:wxNSStringWithWxString(GetLabelText(label))]; +} +