---
title: attributeKeys
framework: objectivec
role: symbol
role_heading: Instance Property
path: objectivec/nsobject-swift.class/attributekeys
---

# attributeKeys

An array of NSString objects containing the names of immutable values that instances of the receiver’s class contain.

## Declaration

```swift
var attributeKeys: [String] { get }
```

## Discussion

Discussion NSObject’s implementation of attributeKeys simply calls [[self classDescription] attributeKeys]. To make use of the default implementation, you must therefore implement and register a suitable class description—see NSClassDescription.

## See Also

### Working with Class Descriptions

- [classDescription](objectivec/nsobject-swift.class/classdescription.md)
- [inverse(forRelationshipKey:)](objectivec/nsobject-swift.class/inverse(forrelationshipkey:).md)
- [toManyRelationshipKeys](objectivec/nsobject-swift.class/tomanyrelationshipkeys.md)
- [toOneRelationshipKeys](objectivec/nsobject-swift.class/toonerelationshipkeys.md)
