Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / CyberOpenerPartExtension


GetDestinationDraft

Retrieves the OpenDoc draft in which this opener part is embedded.

ODDraft GetDestinationDraft ();
return value
The opener part's draft if the opener part is embedded; otherwise, kODNULL.
DISCUSSION
The CyberSession::CreateCyberPart method calls this method to determine in which document to create a Cyberdog display part. If GetDestinationDraft returns a draft, the opener part is embedded in an OpenDoc document and the display part should be as well. If GetDestinationDraft returns kODNULL, the opener part is not embedded in an OpenDoc document; in this case, CreateCyberPart calls CreatePartInCyberDocument to create the display part in the Cyberdog session document.

If you subclass CyberOpenerPartExtension, you must override this method. Your override must call its inherited method.

SEE ALSO
The CyberSession::CreateCyberPart method (page 356).
The CyberSession::CreatePartInCyberDocument method (page 357).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996