summaryrefslogtreecommitdiff
path: root/src/PlatformUtils-mac.mm
diff options
context:
space:
mode:
authordonbright <hugh.m.bright@gmail.com>2013-05-27 05:28:56 (GMT)
committerdonbright <hugh.m.bright@gmail.com>2013-05-27 05:28:56 (GMT)
commitef7b80656fc39dc0fd4012231633cf858e6aa10b (patch)
tree17e5a57dfa154821918094cab47476189771ce00 /src/PlatformUtils-mac.mm
parent0967a26bff45951d7b86fe628e8b1156e6e40ede (diff)
parent37dc9342a14206f5862447eb9d3d5049ec67f638 (diff)
Merge pull request #368 from openscad/issue125
Issue125
Diffstat (limited to 'src/PlatformUtils-mac.mm')
-rw-r--r--src/PlatformUtils-mac.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PlatformUtils-mac.mm b/src/PlatformUtils-mac.mm
new file mode 100644
index 0000000..1e2ba43
--- /dev/null
+++ b/src/PlatformUtils-mac.mm
@@ -0,0 +1,7 @@
+#include "PlatformUtils.h"
+#import <Foundation/Foundation.h>
+
+std::string PlatformUtils::documentsPath()
+{
+ return std::string([[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] UTF8String]);
+}
contact: Jan Huwald // Impressum