Contents

xpc_dictionary_get_array(_:_:)

Returns the array value for the specified key.

Declaration

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

Parameters

  • xdict:

    The dictionary object which is to be examined.

  • key:

    The key whose value is to be obtained.

Return Value

The object for the specified key within the dictionary. NULL if there is no value associated with the specified key, if the given object was not an XPC dictionary, or if the object for the specified key is not an array.

Discussion

This method does not grant the caller a reference to the underlying object, so the caller is not responsible for releasing the object.

See Also

Dictionary objects