The NSMetadataQueryAttributeValueTuple class represents attribute-value tuples, which are objects that contain the attribute name and value of a metadata attribute.


Attribute-value tuples are returned by NSMetadataQuery objects as the results in the value lists. Each attribute/value tuple contains the attribute name, the value, and the number of instances of that value that exist for the attribute name.


Getting Query Attribute/Value Information

var attribute: String

The attribute name for the tuple’s value.

var count: Int

The number of instances of the value for the tuple’s attribute.

var value: Any?

The value of the tuple’s attribute.


Inherits From

Conforms To