#include "CocoaUtils.h" #import void CocoaUtils::endApplication() { [[NSNotificationCenter defaultCenter] postNotificationName:@"NSApplicationWillTerminateNotification" object:nil]; } void CocoaUtils::nslog(const std::string &str, void * /* userdata */) { NSLog(@"%s", str.c_str()); }