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

# lineBreakStrategy

The strategy that the system uses to break lines when laying out multiple lines of text.

```
var lineBreakStrategy: NSParagraphStyle.LineBreakStrategy { get set }
```

## Discussion

The default value for editable text fields is [`NSLineBreakStrategyNone`](/documentation/AppKit/NSLineBreakStrategy/NSLineBreakStrategyNone) to match the field editor’s behavior. The default value for selectable, uneditable text fields is [`standard`](/documentation/AppKit/NSParagraphStyle/LineBreakStrategy-swift.struct/standard).

> Note:
> When the text field has an attributed string value, the system ignores the ``doc://com.apple.appkit/documentation/AppKit/NSTextField/textColor``, ``doc://com.apple.appkit/documentation/AppKit/NSControl/font``, ``doc://com.apple.appkit/documentation/AppKit/NSControl/alignment``, ``doc://com.apple.appkit/documentation/AppKit/NSControl/lineBreakMode``, and `lineBreakStrategy` properties. Set the <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key/foregroundColor>, <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key/font>, ``doc://com.apple.appkit/documentation/AppKit/NSMutableParagraphStyle/alignment``, ``doc://com.apple.appkit/documentation/AppKit/NSParagraphStyle/lineBreakMode``, and ``doc://com.apple.appkit/documentation/AppKit/NSParagraphStyle/lineBreakStrategy-swift.property`` properties in the attributed string instead.

---

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)