]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/checkbox.mm
wxOS2 warning fixes after daily build log.
[wxWidgets.git] / src / cocoa / checkbox.mm
index 7b96b3ca0fd9305b032c0a80e417414bb9ec5238..13ee14009c8362f256cfa43490eea272ef9631e5 100644 (file)
@@ -6,10 +6,13 @@
 // Created:     2003/03/16
 // RCS-ID:      $Id: 
 // Copyright:   (c) 2003 David Elliott
-// Licence:    wxWindows license
+// Licence:    wxWidgets licence
 /////////////////////////////////////////////////////////////////////////////
 
 #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