Contents

xpc_dictionary_create_connection(_:_:)

Creates a connection from a dictionary directly.

Declaration

func xpc_dictionary_create_connection(_ xdict: xpc_object_t, _ key: UnsafePointer<CChar>) -> xpc_connection_t?

Parameters

  • xdict:

    The dictionary object which is to be examined.

  • key:

    The key whose value is to be obtained.

Return Value

A new connection created from the value for the specified key. You are responsible for calling xpc_release on the returned connection. NULL if the value for the specified key is not an endpoint containing a connection or if there is no value for the specified key. Each call to this method for the same key in the same dictionary will yield a different connection. See xpc_connection_create_from_endpoint(_:) for discussion as to the responsibilities when dealing with the returned connection.

See Also

Dictionary objects