Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/OgreMain/src/OSX/OgreErrorDialog.cpp @ 1

Last change on this file since 1 was 1, checked in by landauf, 17 years ago
File size: 575 bytes
Line 
1#include "OgreErrorDialog.h"
2
3using namespace Ogre;
4
5ErrorDialog::ErrorDialog()
6{
7}
8
9void ErrorDialog::display(const String& errorMessage, String logName)
10{
11        CFMutableStringRef errorStr = NULL;
12        errorStr = CFStringCreateMutable( kCFAllocatorDefault, 0 );
13        CFStringAppendCString( errorStr, "ERROR: ", kCFStringEncodingASCII );
14        CFStringAppendCString( errorStr, errorMessage.c_str(), kCFStringEncodingASCII );
15        DialogRef alertDialod;
16        CreateStandardAlert( kAlertStopAlert, errorStr, NULL, NULL, &alertDialod );
17        RunStandardAlert( alertDialod, NULL, NULL );
18}
Note: See TracBrowser for help on using the repository browser.