diff options
author | Marius Kintel <marius@kintel.net> | 2013-10-25 04:48:31 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-10-25 04:48:31 (GMT) |
commit | 60ce9748de19111c65b3d12f2bac371a7a12ec3e (patch) | |
tree | 233d20688a059307f8d9b74694c2fdecc4768a75 /src/CocoaUtils.mm | |
parent | e3e75124252a6d10a4e89108a67635a5d73c01ed (diff) |
Use PRINTB for output which might be grabbed by OS launchers
Diffstat (limited to 'src/CocoaUtils.mm')
-rw-r--r-- | src/CocoaUtils.mm | 4 |
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()]); +} |