<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGlyphStorage/attributedString()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSGlyphStorage(im)attributedString"
  },
  "title" : "attributedString()"
}
-->

# attributedString()

Returns the text storage object from which the `NSGlyphGenerator` object procures characters for glyph generation.

```
func attributedString() -> NSAttributedString
```

## Return Value

The receiver’s text storage object.

## See Also

[`class NSGlyphGenerator`](/documentation/AppKit/NSGlyphGenerator)

An object that performs the initial, nominal glyph generation phase in the layout process.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)