1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 14:09:06 +00:00

Merge branch 'master' into experimental

This commit is contained in:
fgenesis 2014-04-23 00:21:22 +02:00
commit 0486643455

View file

@ -11,10 +11,10 @@
void cocoaMessageBox(const std::string &title, const std::string &msg)
{
@autoreleasepool {
NSString *nstitle = @(title.c_str());
NSString *nsmsg = @(msg.c_str());
NSRunAlertPanel(nstitle, @"%@", nil, nil, nil, nsmsg);
}
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *nstitle = [NSString stringWithUTF8String:title.c_str()];
NSString *nsmsg = [NSString stringWithUTF8String:msg.c_str()];
NSRunAlertPanel(nstitle, @"%@", nil, nil, nil, nsmsg);
[pool drain];
}