Contents

CMRemoveAttachment(_:key:)

Removes a specific attachment from an attachment bearer object.

Declaration

func CMRemoveAttachment(_ target: CMAttachmentBearer, key: CFString)

Parameters

  • target:

    The CMAttachmentBearer containing the attachment to remove.

  • key:

    Key in the form of a Core Foundation string identifying the desired attachment.

Discussion

If the attachment exists, the function removes the attachment and decrements the retain count. Given a CVBuffer, CMRemoveAttachment is equivalent to CVBufferRemoveAttachment.

See Also

Processing Attachments