]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobut.mm
keep selected image in sync with the normal one if it hasn't been changed (patch...
[wxWidgets.git] / src / cocoa / radiobut.mm
index 020b1952131b199dc1cebff41bcd175bd958b1a1..b3916b716b697f496285acc5e0b716a1369cb5f0 100644 (file)
@@ -14,7 +14,7 @@
 #include "wx/log.h"
 
 #import <AppKit/NSButton.h>
-#import <Foundation/NSString.h>
+#include "wx/cocoa/string.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
 // wxRadioButtonBase == wxControl
@@ -37,7 +37,7 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID winid,
     SetNSButton([[NSButton alloc] initWithFrame: cocoaRect]);
     [m_cocoaNSView release];
     [GetNSButton() setButtonType: NSRadioButton];
-    [GetNSButton() setTitle:[NSString stringWithCString: label.c_str()]];
+    [GetNSButton() setTitle:wxNSStringWithWxString(label)];
     [GetNSControl() sizeToFit];
 
     if(m_parent)