For a given key that defines the name of the relationship from the receiver’s class to another class, returns the name of the relationship from the other class to the receiver’s class.
- macOS 10.0+
The name of the relationship from the receiver’s class to another class.
The name of the relationship that is the inverse of the receiver's relationship named
NSObject’s implementation of
inverse simply invokes
[[self class. To make use of the default implementation, you must therefore implement and register a suitable class description—see
For example, suppose an Employee class has a relationship named
department to a Department class, and that Department has a relationship called
employees to Employee. The statement:
returns the string