iOS Developer Library

Developer

Foundation Framework Reference NSMetadataQueryAttributeValueTuple Class Reference

Options
Deployment Target:

On This Page
Language:

NSMetadataQueryAttributeValueTuple

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.

  • The attribute name for the tuple’s value. (read-only)

    Declaration

    Swift

    var attribute: String { get }

    Objective-C

    @property(readonly, copy) NSString *attribute

    Availability

    Available in iOS 5.0 and later.

  • The number of instances of the value for the tuple’s attribute. (read-only)

    Declaration

    Swift

    var count: Int { get }

    Objective-C

    @property(readonly) NSUInteger count

    Availability

    Available in iOS 5.0 and later.

  • The value of the tuple’s attribute. (read-only)

    Declaration

    Swift

    var value: AnyObject? { get }

    Objective-C

    @property(readonly, retain) id value

    Availability

    Available in iOS 5.0 and later.