• 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
with java - create, read from, write to preferences file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

with java - create, read from, write to preferences file


  • Subject: with java - create, read from, write to preferences file
  • From: Matthias Edrich <email@hidden>
  • Date: Sun, 21 Dec 2003 12:10:35 +0100

Hi All,
I am writing a simple application which reads an xml file
and prints certain contents to a NSTextView field.

I want to have the application store the path to that
file in a preferences file (preferences file to be located in
the user's preferences folder).

My first question:

How do I create a preferences file for my application
in the preferences folder if no such file exists?

My second question:

How do I read and write contents from and to this preferences file?
For example, I want to get the path to the XML file.
(I store that path within the preferences file)

My third question:

How do I parse an XML with Java? Are there any special
classes already available which help in getting content
from between XML tags?

Quite a few questions. This is my first Cocoa/Java program,
my first attempt to use XCode and only my second "stand-alone"
Java GUI program (for the first one I used swing).
I am a webapp programmer and don't have the slightest
inkling on how to write "real" programs :-))) (ahem,....
I guess I'm am slowly learning - i completed the Java/Cocoa
tutorial in XCode which really helped).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: with java - create, read from, write to preferences file
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Newbie - Buy book(s) or read free documentation, which is best ????
  • Next by Date: Re: Interpretation of static types in Cocoa [Was: Immutable discomfort]
  • Previous by thread: Unicode and XML parsing
  • Next by thread: Re: with java - create, read from, write to preferences file
  • Index(es):
    • Date
    • Thread