Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5 was 5, checked in by anonymous, 17 years ago

=hoffentlich gehts jetzt

File size: 557 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.