Re: system preferences and NSDictionary
Re: system preferences and NSDictionary
- Subject: Re: system preferences and NSDictionary
- From: email@hidden
- Date: Sat, 14 Dec 2002 17:38:57 +0100
On samedi, dicembre 14, 2002, at 05:02 PM, Jacques wrote:
Hi folks,
Do you it's possible to read (and modify) the file containing the
system
preferences (/private/var/db/SystemConfiguration/preferences.xml) using
(id)dictionaryWithContentsOfFile:(NSString *)path
?
Thanks in advance for your answer.
It's possible to do it since it's just a .plist file with a .xml
extension.
Yet, it's not at all recommended to retrieve information from this file
that way as the file may not represent the current state of the System
Configuration.
To get/set information on the System Configuration, you can use the:
SystemConfiguration.framework
to get information on the keys you need to use to access the
information you want, you can use the command line tool:
scutil
There's a package of useful functions to manipulate this
SystemConfiguration thing available on Apple Developer Site. It's named
MoreSCF IIRC.
Hope it helps.
_______________________________________________
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.