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


SetUpFromURL

Initializes this Cyberdog item from a URL.

void SetUpFromURL (in char* url, 
in StringPtr defaultName,
in ScriptCode defaultNameScript);
url
A pointer to the URL to be parsed and incorporated into this CyberItem object.
defaultName
A pointer to the default display name for the CyberItem object.
defaultNameScript
The script code of the name specified by defaultName.
DISCUSSION
If the value of the defaultName parameter is kODNULL, the method should manufacture an appropriate default display name based on the URL.

You can retrieve a Cyberdog item's default display name by calling GetStringProperty, passing kCDDefaultName for the string property parameter.

If you subclass CyberItem, you must override this method. Your override method 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 GetStringProperty method (page 237).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996