<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTypesetter/sharedSystemTypesetter(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTypesetter(cm)sharedSystemTypesetterForBehavior:"
  },
  "title" : "sharedSystemTypesetter(for:)"
}
-->

# sharedSystemTypesetter(for:)

Returns a shared instance of a reentrant typesetter that implements typesetting with the specified behavior.

```
class func sharedSystemTypesetter(for behavior: NSLayoutManager.TypesetterBehavior) -> Any
```

## Parameters

`behavior`

The desired behavior.

## Return Value

A shared instance of a reentrant typesetter that implements typesetting with the specified behavior.

## Discussion

Possible return values are described in the [`NSLayoutManager.TypesetterBehavior`](/documentation/AppKit/NSLayoutManager/TypesetterBehavior-swift.enum) section for [`NSLayoutManager`](/documentation/AppKit/NSLayoutManager).

## See Also

[`typesetterBehavior`](/documentation/AppKit/NSTypesetter/typesetterBehavior)

Returns the current typesetter behavior.



---

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)