Creates a connection object from an array directly.
- macOS 10.7+
- Mac Catalyst 13.0+Beta
The array which is to be examined.
The index of the value to obtain. This value must lie within the index space of the array (0 to N-1 inclusive, where N is the count of the array). If the index is outside that range, the behavior is undefined.
A new connection created from the value at the specified index. You are responsible for calling xpc_release() on the returned connection. NULL if the value at the specified index is not an endpoint containing a connection. Each call to this method for the same index in the same array will yield a different connection. See
xpc for discussion as to the responsibilities when dealing with the returned connection.