mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-06-08 01:22:02 +00:00
Update Cocoa.mm
An update broke compilation on versions of Mac OS X that didn't have/can't have Xcode 4 or later, including PowerPC versions.
This commit is contained in:
parent
45185dee33
commit
991d7de27d
1 changed files with 5 additions and 5 deletions
|
@ -11,10 +11,10 @@
|
||||||
|
|
||||||
void cocoaMessageBox(const std::string &title, const std::string &msg)
|
void cocoaMessageBox(const std::string &title, const std::string &msg)
|
||||||
{
|
{
|
||||||
@autoreleasepool {
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
NSString *nstitle = @(title.c_str());
|
NSString *nstitle = [NSString stringWithUTF8String:title.c_str()];
|
||||||
NSString *nsmsg = @(msg.c_str());
|
NSString *nsmsg = [NSString stringWithUTF8String:msg.c_str()];
|
||||||
NSRunAlertPanel(nstitle, @"%@", nil, nil, nil, nsmsg);
|
NSRunAlertPanel(nstitle, @"%@", nil, nil, nil, nsmsg);
|
||||||
}
|
[pool drain];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue