<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTypesetter/setNotShownAttribute(_:forGlyphRange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTypesetter(im)setNotShownAttribute:forGlyphRange:"
  },
  "title" : "setNotShownAttribute(_:forGlyphRange:)"
}
-->

# setNotShownAttribute(_:forGlyphRange:)

Sets whether the specified glyphs are not shown.

```
func setNotShownAttribute(_ flag: Bool, forGlyphRange glyphRange: NSRange)
```

## Parameters

`flag`

<doc://com.apple.documentation/documentation/Swift/true> if the glyphs in `glyphRange` are not shown, <doc://com.apple.documentation/documentation/Swift/false> if they are shown.

`glyphRange`

The range of glyphs in question.

## Discussion

For example, a tab or newline character doesn’t leave any marks; it just indicates where following glyphs are laid out.

A subclass can override this method to interact with custom glyph storage.

---

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)