summaryrefslogtreecommitdiff
path: root/src/CocoaUtils.mm
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-10-25 04:48:31 (GMT)
committerMarius Kintel <marius@kintel.net>2013-10-25 04:48:31 (GMT)
commit60ce9748de19111c65b3d12f2bac371a7a12ec3e (patch)
tree233d20688a059307f8d9b74694c2fdecc4768a75 /src/CocoaUtils.mm
parente3e75124252a6d10a4e89108a67635a5d73c01ed (diff)
Use PRINTB for output which might be grabbed by OS launchers
Diffstat (limited to 'src/CocoaUtils.mm')
-rw-r--r--src/CocoaUtils.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CocoaUtils.mm b/src/CocoaUtils.mm
index b72583c..92640fd 100644
--- a/src/CocoaUtils.mm
+++ b/src/CocoaUtils.mm
@@ -8,3 +8,7 @@ void CocoaUtils::endApplication()
object:nil];
}
+void CocoaUtils::nslog(const std::string &str, void *userdata)
+{
+ NSLog([NSString stringWithUTF8String: str.c_str()]);
+}
contact: Jan Huwald // Impressum