From 66bd56ebec2bff48fb1484603b41643fd89bf4d6 Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 27 Jan 2011 20:38:07 -0600 Subject: Moved bundle resource path to Cocoa. Moved alert to Cocoa. Added changing dock icon at runtime. --- src/log.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/log.cpp') diff --git a/src/log.cpp b/src/log.cpp index 5880e108..acb9f67c 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -26,7 +26,8 @@ #ifdef WIN32 #include #elif __APPLE__ -#include +//#include +#include "window.h" #endif #include @@ -114,7 +115,7 @@ void Logger::error(const std::string &error_text) #ifdef WIN32 MessageBox(NULL, error_text.c_str(), "Error", MB_ICONERROR | MB_OK); #elif defined __APPLE__ - Str255 msg; + /*Str255 msg; CFStringRef error; error = CFStringCreateWithCString(NULL, error_text.c_str(), @@ -122,7 +123,8 @@ void Logger::error(const std::string &error_text) CFStringGetPascalString(error, msg, 255, kCFStringEncodingMacRoman); StandardAlert(kAlertStopAlert, "\pError", - (ConstStr255Param) msg, NULL, NULL); + (ConstStr255Param) msg, NULL, NULL);*/ + windowAlert(error_text.c_str()); #elif defined __linux__ || __linux std::cerr << "Error: " << error_text << std::endl; std::string msg="xmessage \"" + error_text + "\""; -- cgit v1.2.3-70-g09d2