1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00
Aquaria/BBGE/Cocoa.mm
2013-11-15 18:45:53 -07:00

20 lines
443 B
Text

#ifndef __APPLE__
#error This file is for Mac OS X only.
#endif
#ifndef __OBJC__
#error This is Objective-C code. Please compile it as such.
#endif
#include <Cocoa/Cocoa.h>
#include <string>
void cocoaMessageBox(const std::string &title, const std::string &msg)
{
@autoreleasepool {
NSString *nstitle = @(title.c_str());
NSString *nsmsg = @(msg.c_str());
NSRunAlertPanel(nstitle, nsmsg, nil, nil, nil);
}
}