Contents

MDQueryCopyValuesOfAttribute(_:_:)

Returns the list of values from the results of the query for the specified attribute.

Declaration

func MDQueryCopyValuesOfAttribute(_ query: MDQuery!, _ name: CFString!) -> CFArray!

Parameters

  • query:

    The query.

  • name:

    The attribute name to return the value of. If the attribute is not one of those requested when the query was created the behavior is undefined

Return Value

A CFArrayRef containing the value objects for the specified attribute. The array contents are not ordered and contain only one occurrence of each value. The array contents may change over time if the query is configured for live-updates.

See Also

Getting Query Result Values