]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/button.mm
app traits support and CW Debug output fix
[wxWidgets.git] / src / cocoa / button.mm
index 8e6e57780a1fb9e77040bb6e5594440eea770902..aa8472a8d7616d3f4a739834c025188bc2107049 100644 (file)
@@ -17,7 +17,7 @@
 #endif
 
 #import <AppKit/NSButton.h>
-#import <Foundation/NSString.h>
+#include "wx/cocoa/string.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
 BEGIN_EVENT_TABLE(wxButton, wxButtonBase)
@@ -41,7 +41,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID winid,
     [m_cocoaNSView release];
 
     [GetNSButton() setBezelStyle:NSRoundedBezelStyle];
-    [GetNSButton() setTitle:[NSString stringWithCString: label.c_str()]];
+    [GetNSButton() setTitle:wxNSStringWithWxString(label)];
     [GetNSControl() sizeToFit];
 
     if(m_parent)