mirror of https://github.com/vitalif/openscad
15 lines
346 B
Plaintext
15 lines
346 B
Plaintext
#include "CocoaUtils.h"
|
|
#import <Foundation/Foundation.h>
|
|
|
|
void CocoaUtils::endApplication()
|
|
{
|
|
[[NSNotificationCenter defaultCenter]
|
|
postNotificationName:@"NSApplicationWillTerminateNotification"
|
|
object:nil];
|
|
}
|
|
|
|
void CocoaUtils::nslog(const std::string &str, void * /* userdata */)
|
|
{
|
|
NSLog(@"%s", str.c_str());
|
|
}
|