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: Speech Recognition Manager /
Chapter 1 - Speech Recognition Manager / Speech Recognition Manager Reference
Speech Recognition Manager Routines / Traversing Speech Objects


SRSetIndexedItem

You can use the SRSetIndexedItem function to replace a subitem in a container object with some other object.

pascal OSErr SRSetIndexedItem (
SRSpeechObject container, 
SRSpeechObject item, 
long index);
container
A speech object.
item
A speech object.
index
An integer ranging from 0 to one less than the number of subitems in the specified speech object.
DESCRIPTION
The SRSetIndexedItem function replaces the subitem having the index specified by the index parameter in the container object specified by the container parameter with the speech object specified by the item parameter. A reference to the replacement item is maintained separately by the container; as a result, you can release any reference to that item if you no longer need it. The reference to the replaced item is removed from the container; if that reference was the last remaining reference to the object, the object is released.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
22 JAN 1997