摘要 |
The invention is directed towards methods and apparatuses for archiving and unarchiving objects. Some embodiments of the invention archive and unarchive objects that have first and second types of settings (e.g., global and user settings in multi-user environments). To archive each object, these embodiments initially identify which object settings are of the first type and which object settings are of the second type. They then store the first-type settings in a first data archive, and then store the second-type settings in a second data archive. To unarchive each object, some embodiments identify the object's settings in one or both of the data archives. These embodiments then instantiate the object, and retrieve the object's first and second type settings from the data archives. These embodiments then use the retrieved settings to define the values of the settings of the instantiated object. Some embodiments use key-value coding techniques to retrieve values and load values in an object. Key-value coding allows an archiving or unarchiving process to retrieve setting values from and to load setting values in an object by simply using the setting names.
|