Contents

AEStreamSetRecordType(_:_:)

Sets the type of the most recently created record in an AEStreamRef.

Declaration

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

Parameters

  • ref:

    An Aestreamref containing the stream data.

  • newType:

    The new type code for the AERecord being added to the stream. See Desctype.

Return Value

A result code. See Result Codes.

Discussion

Use this routine to change the type of a record after it has been opened. You must call this routine between calls to AEStreamOpenRecord(_:_:) and AEStreamCloseRecord(_:). The type you specify in the newType parameter replaces the previous type specified by AEStreamOpenRecord(_:_:).

See Also

Creating Apple Event Structures Using Streams