<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTypesetterBehavior"
  },
  "title" : "NSLayoutManager.TypesetterBehavior"
}
-->

# NSLayoutManager.TypesetterBehavior

Constants that determine the layout manager’s behavior during layout.

```
enum TypesetterBehavior
```

## Overview

These constants define the behavior of `NSLayoutManager` and `NSTypesetter` when laying out lines. They are used by [`typesetterBehavior`](/documentation/AppKit/NSLayoutManager/typesetterBehavior-swift.property) to control the compatibility level of the typesetter.

## Topics

### Behaviors

[`NSLayoutManager.TypesetterBehavior.latestBehavior`](/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum/latestBehavior)

The current typesetter behavior in the current operating system.

[`NSLayoutManager.TypesetterBehavior.originalBehavior`](/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum/originalBehavior)

The original typesetter behavior, as shipped with macOS 10.1 and earlier.

[`NSLayoutManager.TypesetterBehavior.behavior_10_2_WithCompatibility`](/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum/behavior_10_2_WithCompatibility)

The macOS 10.2 typesetting behavior that is still compatible with the original typesetter behavior.

[`NSLayoutManager.TypesetterBehavior.behavior_10_2`](/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum/behavior_10_2)

The typesetter behavior introduced in macOS 10.2.

[`NSLayoutManager.TypesetterBehavior.behavior_10_3`](/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum/behavior_10_3)

The typesetter behavior introduced in macOS 10.3.

[`NSLayoutManager.TypesetterBehavior.behavior_10_4`](/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum/behavior_10_4)

The typesetter behavior introduced in macOS 10.4.



---

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)