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


NewCyberItem

Creates a Cyberdog item.

CyberItem NewCyberItem (in char* classID);
classID
A pointer to the SOM class ID of the Cyberdog item to create.
return value
The newly created Cyberdog item.
DISCUSSION
This method creates a Cyberdog item for the specified SOM class ID. The first time a particular class ID is passed to the method, the method calls ODNewObject to create a prototype Cyberdog item for that class ID, caches the prototype, and returns a clone of that prototype. On subsequent calls to the method with the same class ID, the method returns a clone of the prototype.

This method is optimized for creating large numbers of Cyberdog items at a time, for example, when reading the log from storage.

Do not subclass this class.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996