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

# setSelectedAttributes(_:isMultiple:)

Informs the Font panel that the specified font attributes changed for the selected text.

```
func setSelectedAttributes(_ attributes: [String : Any], isMultiple flag: Bool)
```

## Parameters

`attributes`

The new attributes.

`flag`

If <doc://com.apple.documentation/documentation/Swift/true>, informs the panel that multiple fonts or attributes are enclosed within the selection.

## Discussion

This method is used primarily by `NSTextView`.

---

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)