---
title: "changeAttributes(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextview/changeattributes(_:)"
---

# changeAttributes(_:)

Changes the attributes of the current selection.

## Declaration

```swift
func changeAttributes(_ sender: Any?)
```

## Parameters

- `sender`: The control that sent the message. Must respond to convertAttributes:.

## Discussion

Discussion This method changes the attributes by invoking convertAttributes(_:) on sender and applying the returned attributes to the appropriate text. For more information on attribute conversion, see NSFontManager.

## See Also

### Setting text attributes

- [alignJustified(_:)](appkit/nstextview/alignjustified(_:).md)
- [changeColor(_:)](appkit/nstextview/changecolor(_:).md)
- [setAlignment(_:range:)](appkit/nstextview/setalignment(_:range:).md)
- [typingAttributes](appkit/nstextview/typingattributes.md)
- [useStandardKerning(_:)](appkit/nstextview/usestandardkerning(_:).md)
- [lowerBaseline(_:)](appkit/nstextview/lowerbaseline(_:).md)
- [raiseBaseline(_:)](appkit/nstextview/raisebaseline(_:).md)
- [turnOffKerning(_:)](appkit/nstextview/turnoffkerning(_:).md)
- [loosenKerning(_:)](appkit/nstextview/loosenkerning(_:).md)
- [tightenKerning(_:)](appkit/nstextview/tightenkerning(_:).md)
- [useStandardLigatures(_:)](appkit/nstextview/usestandardligatures(_:).md)
- [turnOffLigatures(_:)](appkit/nstextview/turnoffligatures(_:).md)
- [useAllLigatures(_:)](appkit/nstextview/useallligatures(_:).md)
- [toggleTraditionalCharacterShape(_:)](appkit/nstextview/toggletraditionalcharactershape(_:).md)
