From b9ed32049fdd342febc9f92763245106a7c72fef Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Fri, 15 Nov 2013 18:45:13 -0700 Subject: [PATCH] Use more modern Objective-C syntax. --- BBGE/Cocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BBGE/Cocoa.mm b/BBGE/Cocoa.mm index 6a90e74..ba10481 100644 --- a/BBGE/Cocoa.mm +++ b/BBGE/Cocoa.mm @@ -12,8 +12,8 @@ void cocoaMessageBox(const std::string &title, const std::string &msg) { @autoreleasepool { - NSString *nstitle = [NSString stringWithUTF8String:title.c_str()]; - NSString *nsmsg = [NSString stringWithUTF8String:msg.c_str()]; + NSString *nstitle = @(title.c_str()); + NSString *nsmsg = @(msg.c_str()); NSRunAlertPanel(nstitle, nsmsg, nil, nil, nil); } }