---
title: NSAttachmentAttributeName
framework: appkit
role: symbol
role_heading: Global Variable
path: appkit/nsattachmentattributename
---

# NSAttachmentAttributeName

The attachment for the text.

## Declaration

```occ
extern NSAttributedStringKey NSAttachmentAttributeName;
```

## Discussion

Discussion The value of this attribute is an NSTextAttachment object. The default value of this property is nil, indicating no attachment.

## See Also

### Getting attachment attribute keys

- [NSAdaptiveImageGlyphAttributeName](appkit/nsadaptiveimageglyphattributename.md)
