discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preferences api


From: Rogelio M . Serrano Jr .
Subject: Re: preferences api
Date: Mon, 16 Aug 2004 12:06:22 +0800

On 2004-08-16 11:15:27 +0800 Rogelio M.Serrano Jr. <rogelio@smsglobal.net> wrote:

On 2004-08-14 11:48:21 +0800 Gregory John Casamento <greg_casamento@yahoo.com> wrote:

Rogelio,

Yes, please see NSUserDefaults.

GJC

Yes but this is only for users. What about for daemons? Can we use roots defaults to store all the configs for the whole machine? Right now im using a berkeley db database for all the daemons i wrote. It is one file located in /etc. Its a b-tree table and is too much for configurations but it offers me a standard way to save retreiving configs for all my programs without writing my own parser. And another program can easily change the config. And im not worried about mass destruction too.




After going through apples docs on preferences and user defaults i think there is a certain degree of freedom in how to implement the whole config db issue. i prefer the extension of the mac os x style user defaults into different fs domains instead of implementing something like CFPreferences. user defaults are in ~/Library/Preferences. other defaults could be in /Library/Preferences/, /Network/Library/Preferences/, /System/Library/Preferences/.

Or am I missing something? Does NSUserDefaults already do that depending on the parameters when creating the defaults entries? This still leaves my original question unanswered. How do system daemons store and access their configs in GNUstep?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]