[MAC OS X] User Preference Folder
Posted: Thu Dec 22, 2005 8:26 pm
On Mac OS X an 'FolderPointer' is needed to get the Users Preference Folder. This is used to store the Users 'Preference files'.
The structure is Users/myUserName/Library/Preferences
The problem is to get the 'UserName' ... So it is possible to build the 'path' String....
I think on OS X 10.4.x the folder names are the same, and not depending on the Language settings... (I don't remember how it was on 10.3.x)
On OS X there are also a lot of folders in the 'UserName' folder that store stuff for just that user...
So an 'Pointer' to the folder: UserName should fix a lot of problems.. Perhaps an Constant like this: #PB_UserDirectory so I could build an string like this:
FileName$ = #PB_UserDiectory + "Library/Preferences/myAppPrefs/myPrefsFile.txt"
I have tried to find an 'workaround' about this using ExamineDirectory and DirectoryEntryAttributes but Nope...
Regards,
SEO
The structure is Users/myUserName/Library/Preferences
The problem is to get the 'UserName' ... So it is possible to build the 'path' String....
I think on OS X 10.4.x the folder names are the same, and not depending on the Language settings... (I don't remember how it was on 10.3.x)
On OS X there are also a lot of folders in the 'UserName' folder that store stuff for just that user...
So an 'Pointer' to the folder: UserName should fix a lot of problems.. Perhaps an Constant like this: #PB_UserDirectory so I could build an string like this:
FileName$ = #PB_UserDiectory + "Library/Preferences/myAppPrefs/myPrefsFile.txt"
I have tried to find an 'workaround' about this using ExamineDirectory and DirectoryEntryAttributes but Nope...
Regards,
SEO