Re: java - reading and writing preferences
Re: java - reading and writing preferences
- Subject: Re: java - reading and writing preferences
- From: Chris Parker <email@hidden>
- Date: Thu, 22 Apr 2004 07:02:16 -0700
Hi Frank,
On Apr 22, 2004, at 6:30 AM, Frank Ribitch wrote:
I have a plist file that i need to read from. Its generated as the
output of
"system_profiler -xml -detailLevel -1 > output.plist"
The data is stored different than past projects that I have worked
with. My app had all values between a single <dict> tag. The system
profiler file has nested arrays, so there are several <dict> tags in
the file. How do I read this type of file? Since there are arrays of
data, there will be more than one record for things like DNS servers,
IP addresses, and routers. These are all essential pieces of data that
I need to read.
Your subject line says "Reading and writing preferences" but here,
you're really talking about things that are stored in the System
Configuration framework. You might want to read up on it starting at
http://developer.apple.com/documentation/Networking/Conceptual/
SysConfigOverview926/SysConfigOverview926.html
I am debating to do this in objective c or java. I have done things in
java, but never objective c. I do have books on cocoa with objective
c, but i am still pretty clueless and the code syntax still looks very
foreign to me.
SC doesn't expose a Java API - it does have a C API though, which you
could either write JNI wrappers for or just call it directly from
Objective C. Some sample code using SC is available at
http://developer.apple.com/samplecode/MoreSCF/MoreSCF.html
.chris
--
Chris Parker
Cocoa Frameworks Engineer
Apple Computer, Inc.
_______________________________________________
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.