[Top][All Lists]

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

Re: GNUstep directory in userhome

From: Richard Frith-Macdonald
Subject: Re: GNUstep directory in userhome
Date: Tue, 6 Mar 2001 06:43:18 +0000

On Tuesday, March 6, 2001, at 06:25 AM, Jonathan Gapen wrote:

>    After that's sorted out, I think it won't be all that hard to get 
> NSUserDefaults using the registry.  However, it looks like the easiest 
> way to do it (without a whole mess of #ifdefs) means a re-organization, 
> and elimination of initWithContentsOfFile:. 

I think that's probably fine ... initWithContentsOfFile: is not an OpenStep
or MacOS-X method.  The correct initialiser is initWithUser:

As far as I know, the advantage of initWithContentsOfFile: is mostly that it 
make regression-testing easy (and we don't have regression tests for 
right now) - without risking messing up the testers defaults.

Before doing a radical rewrite and scrapping that method though, it might be a 
idea to actually write some regression tests for NSUserDefaults.

One thing that might not be easy to do with the windows registry (I don't know) 
the periodic check to see if defaults have changed.  With the current 
the overhead of this is low, as the software can check the timestamp on the 
file to see if it has changed, and only needs to read it and update the 
copy if the file has been modified since it was last read.

reply via email to

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