• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Preferences File & storing in .app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferences File & storing in .app


  • Subject: Re: Preferences File & storing in .app
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 3 May 2004 19:12:57 +0200

Hi,
storing anything in .app is very bad design because you can't predict if the user has enough privileges...


Robert

On 3.5.2004, at 17: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.


References: 
 >Preferences File & storing in .app (From: Matthias Edrich <email@hidden>)

  • Prev by Date: Re: Maybee a stupid question about <vector.h>
  • Next by Date: FAQ: Portable printf spec for Pascal strings
  • Previous by thread: Preferences File & storing in .app
  • Next by thread: Re: Preferences File & storing in .app
  • Index(es):
    • Date
    • Thread