<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/usesSingleLineMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(py)usesSingleLineMode"
  },
  "title" : "usesSingleLineMode"
}
-->

# usesSingleLineMode

A Boolean value indicating whether the cell restricts layout and rendering of text to a single line.

```
var usesSingleLineMode: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, text layout and rendering is restricted to a single line. In addition, the cell ignores the return value from [`wraps`](/documentation/AppKit/NSCell/wraps), interprets [`NSLineBreakMode.byWordWrapping`](/documentation/AppKit/NSLineBreakMode/byWordWrapping) and [`NSLineBreakMode.byCharWrapping`](/documentation/AppKit/NSLineBreakMode/byCharWrapping) returned by [`lineBreakMode`](/documentation/AppKit/NSCell/lineBreakMode) as [`NSLineBreakMode.byClipping`](/documentation/AppKit/NSLineBreakMode/byClipping), and configures the field editor to ignore key binding commands that insert paragraph and line separators.

The field editor bound to a single-line cell filters out paragraph and line separator insertion from user actions. Cells in single-line mode use the fixed baseline layout. The text baseline position is determined solely by the control size regardless of content font style or size.

---

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)