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 / CyberItem


GetFileInfo

Retrieves the file creator and file type of the data referenced by this Cyberdog item.

void GetFileInfo (in CDItemInfoType infoType, 
out ODOSType flCreator, 
out ODOSType flType);
infoType
The type of file for which information should be returned. Possible values are kCDInfoReference, kCDInfoPart, or kCDInfoDownload.
flCreator
The file creator.
flType
The file type.
DISCUSSION
This method should return a file creator and a file type of the specified form for a Cyberdog item in the Finder: reference, part, or downloaded file. The superclass implementation returns 0 for the file creator and the file type.

This method throws the kCDErrItemNotResolved exception if the Cyberdog item is not resolved.

If you subclass CyberItem, 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 CDItemInfoType type (page 173).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996