Contents

xpc_dictionary_set_connection(_:_:_:)

Inserts a connection into a dictionary.

Declaration

func xpc_dictionary_set_connection(_ xdict: xpc_object_t, _ key: UnsafePointer<CChar>, _ connection: xpc_connection_t)

Parameters

  • xdict:

    The dictionary which is to be manipulated.

  • key:

    The key for which the primitive value shall be set.

  • connection:

    The connection to insert. After calling this method, the XPC object corresponding to the primitive value inserted may be safely retrieved with Xpc_dictionary_get_value(_:_:). The connection is NOT retained by the dictionary.

See Also

Dictionary objects