Externalize
TheExternalizemethod stores the data needed to restore this persistent object to its current state.
void Externalize ();DISCUSSION
Your part calls this method of a persistent object (for example, a part or frame) to write that object's data to persistent storage. This method writes the object's persistent state to the properties and values in the object's storage unit. It must write sufficient information to allow the object'sInitClassFromStoragemethod to restore the object to its current state; for example, a part'sExternalizemethod must write the information needed by itsInitPartFromStoragemethod.OVERRIDING
Every subclass ofODPersistentObjectmust override theExternalizemethod. Your subclass ofODPartoverrides this method if your part maintains persistent content. The override method must call its inheritedExternalizemethod at the beginning of its implementation.SEE ALSO
TheODPersistentObject::InitPersistentObjectmethod (page 560).
TheODPersistentObject::InitPersistentObjectFromStoragemethod (page 561).
TheODPartclass (page 459).
"The Externalize Method" on page 98 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"The Externalize Method" on page 297 in OpenDoc Programmer's Guide.
"Writing Links in Externalize" on page 388 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help