AEStreamOpenRecord(_:_:)
Marks the beginning of an Apple event record in an AEStreamRef.
Declaration
func AEStreamOpenRecord(_ ref: AEStreamRef!, _ newType: DescType) -> OSStatusParameters
- ref:
An Aestreamref containing the stream data.
- newType:
A type code for the new record you are adding to the stream. This value can be
typeAERecordor any other appropriate value. See Desctype.
Return Value
A result code. See Result Codes.
Discussion
This routine marks the beginning of a sequence of zero or more keyword/descriptor definitions that you use to build an AERecord structure. You must balance each call to this method with a corresponding call to AEStreamCloseRecord(_:).
For information on adding keyword/descriptor data to the record, see the AEStreamOpenKeyDesc(_:_:_:), AEStreamWriteKey(_:_:), and AEStreamWriteKeyDesc(_:_:_:_:_:) routines.
See Also
Creating Apple Event Structures Using Streams
AEStreamClose(_:_:)AEStreamCloseDesc(_:)AEStreamCloseList(_:)AEStreamCloseRecord(_:)AEStreamCreateEvent(_:_:_:_:_:_:_:)AEStreamOpen()AEStreamOpenDesc(_:_:)AEStreamOpenEvent(_:)AEStreamOpenKeyDesc(_:_:_:)AEStreamOpenList(_:)AEStreamOptionalParam(_:_:)AEStreamSetRecordType(_:_:)AEStreamWriteAEDesc(_:_:)AEStreamWriteData(_:_:_:)AEStreamWriteDesc(_:_:_:_:)AEStreamWriteKey(_:_:)AEStreamWriteKeyDesc(_:_:_:_:_:)