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: Interapplication Communication /
Chapter 4 - Responding to Apple Events / Reference to Responding to Apple Events
Routines for Responding to Apple Events / Getting the Sizes and Descriptor Types of Descriptor Records


AESizeOfNthItem

You can use the AESizeOfNthItem function to get the size and descriptor type of a descriptor record in a descriptor list.

FUNCTION AESizeOfNthItem (theAEDescList: AEDescList; 
                          index: LongInt; VAR typeCode: DescType; 
                          VAR dataSize: Size): OSErr;
theAEDescList
The descriptor list containing the descriptor record.
index
The position of the descriptor record in the list (for example, 2 specifies the second descriptor record).
typeCode
The descriptor type of the descriptor record.
dataSize
The length (in bytes) of the data in the descriptor record.
RESULT CODES
noErr0No error
errAEDescNotFound -1701Descriptor record was not found
errAEReplyNotArrived-1718Reply has not yet arrived

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996