WebObjects 5.2

com.webobjects.eoapplication
Class EOUserFileDefaults

java.lang.Object
  |
  +--com.webobjects.eoapplication.EODefaults
        |
        +--com.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

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()

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 Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.