Determines the type of relationship that exists between a directory and an item.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
A pointer to a variable in which to put the relationship between
other. For a list of possible values, see
The URL of the directory that potentially contains the item in
other. The URL in this parameter must specify a directory. This parameter must not be
The URL of the file or directory whose relationship to
directoryis being tested. This parameter must not be
true if the relationship between the items was successfully determined, or
false if an error occurred.
Use this method to determine the relationship between an item and a directory whose location you already know. If the relationship between the items is determined successfully, this method sets the value of the
out parameter to an appropriate value. The directory may contain the item, it may be the same as the item, or it may not have a direct relationship to the item.