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

# formattingStringsFilename

The name of the rule editor’s strings file.

```
var formattingStringsFilename: String? { get set }
```

## Discussion

The `NSRuleEditor` class looks for a strings file with the given name in the main bundle and (if appropriate) the bundle containing the nib file from which it was loaded. If it finds a strings file resource with the given name, `NSRuleEditor` loads it and sets it as the formatting dictionary for the receiver. You can obtain the resulting dictionary using the [`formattingDictionary`](/documentation/AppKit/NSRuleEditor/formattingDictionary) property].

If you assign a new dictionary to the [`formattingDictionary`](/documentation/AppKit/NSRuleEditor/formattingDictionary) property, it sets the current to formatting strings file name to `nil`.

---

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)