<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSResponder/restorableStateKeyPaths",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSResponder(cpy)restorableStateKeyPaths"
  },
  "title" : "restorableStateKeyPaths"
}
-->

# restorableStateKeyPaths

Returns an array of key paths representing the restorable attributes of the responder.

```
class var restorableStateKeyPaths: [String] { get }
```

## Return Value

An array of <doc://com.apple.documentation/documentation/Foundation/NSString> objects, each of which contains a key path to one of the responder’s attributes.

## Discussion

You can use this method instead of, or in addition to, the [`encodeRestorableState(with:)`](/documentation/AppKit/NSResponder/encodeRestorableState(with:)) and [`restoreState(with:)`](/documentation/AppKit/NSResponder/restoreState(with:)) methods to save and restore the state of your responder. The key paths you return must refer to attributes that are key-value coding and key-value observing compliant. To learn more about these mechanisms, see [Key-Value Coding Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/KeyValueCoding/index.html#//apple_ref/doc/uid/10000107i) and [Key-Value Observing Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html#//apple_ref/doc/uid/10000177i).

When changes are detected, the specified attributes are automatically written to disk with the rest of the application’s interface-related state. At launch time, the attributes are automatically restored to their previous values.

---

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)