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

# NSRuleEditor.NestingMode

Specifies a type for nesting modes.

```
enum NestingMode
```

## Overview

See `Nesting Modes` for possible values.

## Topics

### Modes

[`NSRuleEditor.NestingMode.compound`](/documentation/AppKit/NSRuleEditor/NestingMode-swift.enum/compound)

Unlimited nesting and compound rows.

[`NSRuleEditor.NestingMode.list`](/documentation/AppKit/NSRuleEditor/NestingMode-swift.enum/list)

Allows a single list, with no nesting and no compound rows.

[`NSRuleEditor.NestingMode.simple`](/documentation/AppKit/NSRuleEditor/NestingMode-swift.enum/simple)

One compound row at the top with subrows beneath it, and no further nesting allowed.

[`NSRuleEditor.NestingMode.single`](/documentation/AppKit/NSRuleEditor/NestingMode-swift.enum/single)

Only a single row is allowed.



---

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)