WebObjects 5.2.3

com.webobjects.eoapplication
Class EOUserFileDefaults

java.lang.Object
  extended bycom.webobjects.eoapplication.EODefaults
      extended bycom.webobjects.eoapplication.EOUserFileDefaults
All Implemented Interfaces:
NSDisposable

public class EOUserFileDefaults
extends EODefaults

EOUserFileDefaults manages the defaults of an application by storing and loading them from the file system. The file location can be specified as userDefaultsFile argument to the EOApplication. The value of that argument can contain "~" to specify the user's hoe directory and "#" to specify the application name, for example "~/.Defaults#".

See Also:
EODefaults

Field Summary
 
Fields inherited from class com.webobjects.eoapplication.EODefaults
DefaultsKey, LoadUserDefaultsNotification, SaveUserDefaultsNotification
 
Constructor Summary
EOUserFileDefaults()
          Creates a new defaults manager object.
 
Method Summary
protected  NSDictionary loadPersistentValues()
          Tries to load the persistent user defaults from the file system.
protected  void savePersistentValues(NSDictionary values)
          Saves the persistent user defaults in the file system.
 
Methods inherited from class com.webobjects.eoapplication.EODefaults
allValues, clearAllValues, dispose, flushDefaultsToPersistentStore, setPersistentValueForKey, setTransientValueForKey, valueForKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOUserFileDefaults

public EOUserFileDefaults()
Creates a new defaults manager object.

Method Detail

loadPersistentValues

protected NSDictionary loadPersistentValues()
Tries to load the persistent user defaults from the file system.

Overrides:
loadPersistentValues in class EODefaults
Returns:
the defaults loaded
See Also:
savePersistentValues(NSDictionary)

savePersistentValues

protected void savePersistentValues(NSDictionary values)
Saves the persistent user defaults in the file system.

Overrides:
savePersistentValues in class EODefaults
Parameters:
values - the persistent values to save
See Also:
loadPersistentValues()

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.