Contents

AEStreamOpenRecord(_:_:)

Marks the beginning of an Apple event record in an AEStreamRef.

Declaration

func AEStreamOpenRecord(_ ref: AEStreamRef!, _ newType: DescType) -> OSStatus

Parameters

  • 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 typeAERecord or 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