<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSClassDescription/toOneRelationshipKeys",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSClassDescription(py)toOneRelationshipKeys"
  },
  "title" : "toOneRelationshipKeys"
}
-->

# toOneRelationshipKeys

Overridden by subclasses to return the keys for the to-one relationship properties of instances of the described class.

```
var toOneRelationshipKeys: [String] { get }
```

## Return Value

An array of `NSString` objects containing the names of the to-one relationship properties of instances of the described class.

## Discussion

To-one relationship properties are single objects.

If you have an instance of the class the receiver describes, you can use the `NSObject` instance method <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/toOneRelationshipKeys> instead.

## See Also

[`attributeKeys`](/documentation/Foundation/NSClassDescription/attributeKeys)

Overridden by subclasses to return the names of attributes of instances of the described class.



---

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)