#endif
#import <AppKit/NSButton.h>
-#import <Foundation/NSString.h>
+#include "wx/cocoa/string.h"
IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
BEGIN_EVENT_TABLE(wxButton, wxButtonBase)
[m_cocoaNSView release];
[GetNSButton() setBezelStyle:NSRoundedBezelStyle];
- [GetNSButton() setTitle:[NSString stringWithCString: label.c_str()]];
+ [GetNSButton() setTitle:wxNSStringWithWxString(label)];
[GetNSControl() sizeToFit];
if(m_parent)
#include "wx/log.h"
#import <AppKit/NSButton.h>
-#import <Foundation/NSString.h>
+#include "wx/cocoa/string.h"
IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
// wxRadioButtonBase == wxControl
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)