Hi all,
I'm working on a little app for OSX. Which will be runned at startup for all users. However, it uses a plist file. I would like to read and write the plist file to a different folder.
Right now it writes to the documents folder of current user. I need to to be written to: /Users/mainAccount/Public
So all other users will be using the same file.
How can I do this properly?
I'm working on a little app for OSX. Which will be runned at startup for all users. However, it uses a plist file. I would like to read and write the plist file to a different folder.
Right now it writes to the documents folder of current user. I need to to be written to: /Users/mainAccount/Public
So all other users will be using the same file.
Code:
fileManager = [NSFileManager defaultManager];
paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
documentsDirectory = [paths objectAtIndex:0];
path = [documentsDirectory stringByAppendingPathComponent:@"autoUpdater.plist"];
How can I do this properly?