WebObjects 5.4.2

com.webobjects.eoapplication
Class EOUserFileDefaults

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

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:
EOUserFileDefaults.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:
EOUserFileDefaults.loadPersistentValues()

Last updated June 2008

Copyright © 2000-2008 Apple Inc.