Closing an Object

SOM_Scope BOOL SOMLINK pwfolder_wpClose(PWFolder *somSelf)
{
    PWFolderData *somThis =                     /* Get instance data     */
                 PWFolderGetData(somSelf);
    PWFolderMethodDebug("PWFolder",             /* Set debug info        */
                        "pwfolder_wpInitData");
    _LockFolder(somSelf);                       /* Lock folder           */

    return(parent_wpClose(somSelf));            /* Allow default proc    */
}

This example shows the _wpClose method being overridden in order to provide class-specific processing for the password-protected folder.


[Back: Automatically Instantiating an Object]
[Next: Saving an Object's State]