---
title: CMAttachmentBearer
framework: coremedia
role: symbol
role_heading: Type Alias
path: coremedia/cmattachmentbearer
---

# CMAttachmentBearer

An object that can carry attachments.

## Declaration

```swift
typealias CMAttachmentBearer = CFTypeRef
```

## Discussion

Discussion A CMAttachmentBearer is a Core Foundation-based object that supports the suite of key/value/mode attachment APIs. Since “plain” C has no type subclassing, the framework uses CFType as the basis for the CMAttachmentBearer type. Not all CFTypes support CMAttachmentBearer methods, so if you call a CMAttachmentBearer method on a Core Foundation object that doesn’t support it, it fails.

## See Also

### Data Types

- [CMAttachmentBearerProtocol](coremedia/cmattachmentbearerprotocol.md)
- [CMAttachmentMode](coremedia/cmattachmentmode.md)
