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


GetStringProperty

Retrieves a string property for this Cyberdog item.

void GetStringProperty (in CDStringProperty property, 
in StringPtr theString,
out ScriptCode script);
property
The string property to be retrieved.
theString
A pointer to a string buffer. On return, the buffer contains the requested string.
script
The script code of the returned string.
DISCUSSION
Each Cyberdog item has a set of strings that describe its properties. This method should return one of those strings, depending on the value of the property parameter. The default name property is the most important of these; it is the name of the Cyberdog item that is displayed to the user.

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 CDStringProperty type (page 174).
The SetDefaultName method (page 243).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996