]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/control.mm
Explain various printing backends in GTK+
[wxWidgets.git] / src / cocoa / control.mm
index 475a372d5e1fc6ef59711076e0e9be56063201e6..9fabb68103e9ccdd44d1480461453423a408a2be 100644 (file)
@@ -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))];
+}
+