![]() |
AECreateDesc |
||||
Header: | AEDataModel.h | Carbon status: | Supported | |
Creates a new descriptor record that incorporates the specified data.
OSErr AECreateDesc ( DescType typeCode, const void *dataPtr, Size dataSize, AEDesc *result );
The descriptor type for the new descriptor record. For a list of AppleScripts predefined descriptor types, see
A pointer to the data for the new descriptor record.
The length, in bytes, of the data for the new descriptor record.
A pointer to a descriptor record. On successful return, a descriptor record that incorporates the data specified by the dataPtr parameter. On error, a null descriptor. Your application should always call the AEDisposeDesc function to dispose of the resulting descriptor record after it has finished using it.
A result code.
While it is possible to create an Apple event descriptor or a descriptor list or a descriptor record with the AECreateDesc function (assuming you have access to the raw data for an Apple event, list, or descriptor), you typically create these structured objects with their specific creation routinesAECreateAppleEvent, AECreateList, or AECreateDesc.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. (Last Updated 5/8/2000)