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

# raiseBaseline(_:)

Raises the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view.

```
func raiseBaseline(_ sender: Any?)
```

## Parameters

`sender`

The control that sent the message; may be `nil`.

## Discussion

As such, this method defines a more primitive operation than superscripting.

## See Also

[`-  unscript:`](/documentation/AppKit/NSText/unscript(_:))

This action method removes any superscripting or subscripting from selected text (or all text if the receiver is a plain text object).

[`-  superscript:`](/documentation/AppKit/NSText/superscript(_:))

This action method applies a superscript attribute to selected text (or all text if the receiver is a plain text object), raising its baseline offset by a predefined amount.



---

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)