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


GetContentKind

Retrieves the part kind of the data referenced by this Cyberdog item.

ODTypeToken GetContentKind ();
return value
The part kind of the data referenced by the CyberItem object.
DISCUSSION
If this Cyberdog item references downloadable data, this method should return the part kind of the data that is provided by the corresponding Cyberdog stream. Otherwise, this method should return the constant kODNullTypeToken. The superclass implementation returns kODNULLTypeToken.

This method should call the ODSession::GetTokenizer method of OpenDoc to translate the Cyberdog item's part kind into an ODTypeToken. This method should throw the kCDErrItemNotResolved exception if the Cyberdog item is not resolved.

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


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996