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


OpenFile

Opens a file that contains a Cyberdog item's downloaded content.

void OpenFile (in CyberItem item, 
in FSSpecPtr file, 
in ParameterSet openParams);
item
The CyberItem object that is being opened.
file
The file specification of the file that contains the Cyberdog item's downloaded content.
openParams
The parameter set associated with the opening process.
DISCUSSION
This method may be called during a Cyberdog item's opening process. If a Cyberdog item is unable to create a Cyberdog display part for the data it references, it can create a download part to download the data and save it to disk. The Cyberdog download part calls this method after downloading and saving to a file a Cyberdog item that was passed to its OpenCyberItem method. The specified file contains the Cyberdog item's downloaded content. The opener part attempts to find an OpenDoc part editor for the file according to its file type.

If you subclass CyberOpenerPartExtension, you must override this method. Your override must not call its inherited method; that is, your override method must implement this method's functionality completely.

SEE ALSO
The OpenPart method (page 275).
The CyberPartExtension::OpenCyberItem method (page 290).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996