xpc_dictionary_create(_:_:_:)
Creates an XPC object that represents a dictionary of XPC objects keyed to C-strings.
Declaration
func xpc_dictionary_create(_ keys: UnsafePointer<UnsafePointer<CChar>>?, _ values: UnsafePointer<xpc_object_t?>?, _ count: Int) -> xpc_object_tParameters
- keys:
An array of C-strings that are to be the keys for the values to be inserted. Each element of this array is copied into the dictionary’s internal storage. If any element of this array is NULL, the behavior is undefined.
- values:
A C-array that is parallel to the array of keys, consisting of objects that are to be inserted. Each element in this array is retained. Elements in this array may be NULL.
- count:
The number of key/value pairs in the given arrays. If the count is less than the actual count of values, only that many key/value pairs will be inserted into the dictionary.
If the count is more than the the actual count of key/value pairs, the behavior is undefined. If one array is NULL and the other is not, the behavior is undefined. If both arrays are NULL and the count is non-0, the behavior is undefined.
Return Value
The new dictionary object.
See Also
Dictionary objects
XPCDictionaryxpc_dictionary_create_empty()xpc_dictionary_create_connection(_:_:)xpc_dictionary_create_reply(_:)xpc_dictionary_set_value(_:_:_:)xpc_dictionary_get_count(_:)xpc_dictionary_get_value(_:_:)xpc_dictionary_apply(_:_:)xpc_dictionary_dup_fd(_:_:)xpc_dictionary_get_array(_:_:)xpc_dictionary_get_bool(_:_:)xpc_dictionary_get_data(_:_:_:)xpc_dictionary_get_date(_:_:)xpc_dictionary_get_dictionary(_:_:)xpc_dictionary_get_double(_:_:)