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
[MAC OS X] User Preference Folder
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
What else has it got?
Last edited by netmaestro on Wed Feb 22, 2006 5:29 am, edited 3 times in total.
BERESHEIT