Contents

xpc_dictionary_set_string(_:_:_:)

Inserts a C-string value into a dictionary.

Declaration

func xpc_dictionary_set_string(_ xdict: xpc_object_t, _ key: UnsafePointer<CChar>, _ string: UnsafePointer<CChar>)

Parameters

  • xdict:

    The dictionary which is to be manipulated.

  • key:

    The key for which the primitive value shall be set.

  • string:

    The C string to insert. After calling this method, the XPC object corresponding to the primitive value inserted may be safely retrieved with Xpc_dictionary_get_value(_:_:).

See Also

Dictionary objects