AEStreamSetRecordType(_:_:)
Sets the type of the most recently created record in an AEStreamRef.
Declaration
func AEStreamSetRecordType(_ ref: AEStreamRef!, _ newType: DescType) -> OSStatusParameters
- ref:
An Aestreamref containing the stream data.
- newType:
The new type code for the
AERecordbeing 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
AEStreamClose(_:_:)AEStreamCloseDesc(_:)AEStreamCloseList(_:)AEStreamCloseRecord(_:)AEStreamCreateEvent(_:_:_:_:_:_:_:)AEStreamOpen()AEStreamOpenDesc(_:_:)AEStreamOpenEvent(_:)AEStreamOpenKeyDesc(_:_:_:)AEStreamOpenList(_:)AEStreamOpenRecord(_:_:)AEStreamOptionalParam(_:_:)AEStreamWriteAEDesc(_:_:)AEStreamWriteData(_:_:_:)AEStreamWriteDesc(_:_:_:_:)AEStreamWriteKey(_:_:)AEStreamWriteKeyDesc(_:_:_:_:_:)