annotate src/sys/osx/filesystem.mm @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author |
Paper <mrpapersonic@gmail.com> |
date |
Wed, 16 Aug 2023 00:49:17 -0400 |
parents |
51ae25154b70 |
children |
5c0397762b53 |
rev |
line source |
5
|
1 #include <Cocoa/Cocoa.h>
|
|
2 #include <string>
|
|
3
|
|
4 namespace osx {
|
|
5
|
|
6 std::string GetApplicationSupportDirectory() {
|
|
7 NSArray* strings = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, true);
|
|
8 return std::string([[strings objectAtIndex:0] UTF8String]);
|
|
9 }
|
|
10
|
|
11 } |