Re: Preferences File & storing in .app
Re: Preferences File & storing in .app
- Subject: Re: Preferences File & storing in .app
- From: Daniel Todd Currie <email@hidden>
- Date: Mon, 3 May 2004 11:40:54 -0700
A preferences file in "~/Library/Preferences/" can easily be created
and managed using Cocoa-Java's NSUserDefaultsController:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Java/Classes/NSUserDefaultsController.html
As for the file you want to reference, you should consider storing it
in "~/Library/Application Support/<name of your app>/".
Hope this helps,
-- Daniel Currie
On 2004 May 03, at 08:02, Matthias Edrich wrote:
Hi All,
I want to store application preferences within a Preference File
within the standard user home location
in Mac OS X.
My application is programmed with XCode in Java. Essentially, I want
to:
1) Have the application create a preference file if none exists
2) Have the application write to the file
3) Be able to read from the file.
How do I do this?
Also,... my application reads information from a file,
which I place within my home directory. Is there a way
I can store this file within the MyApplication.app directory
and references it there? How would I go about doing that?
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.