Returns the relationship for the given relationship of the object with a given object ID.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Data
The relationship for which values are requested.
The ID of the object for which values are requested.
The managed object context into which values will be returned.
If an error occurs, upon return contains an
NSErrorobject that describes the problem.
The value of the relationship specified
relationship of the object with object ID
nil if an error occurs.
If the relationship is a to-many, the method should return a collection object containing
NSManaged instances to identify the related objects. Using an
NSArray instance is preferred because it will be the most efficient. A store may also return an instance of
NSOrdered; an instance of
NSDictionary is not acceptable.
If an object with object ID
object cannot be found, the method should return
error is not
NULL—create and return an appropriate error object in