iOS Developer Library

Developer

Foundation Framework Reference NSMetadataQueryAttributeValueTuple Class Reference

Options
Deployment Target:

On This Page
Language:

NSMetadataQueryAttributeValueTuple

Inherits From


  • NSObject
  • NSMetadataQueryAttributeValueTuple

Conforms To


Import Statement


Swift

import Foundation

Objective-C

@import Foundation;

Availability


Available in iOS 5.0 and later

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.

  • attribute attribute Property

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

    Declaration

    Swift

    var attribute: String { get }

    Objective-C

    @property(readonly, copy) NSString *attribute

    Import Statement

    Objective-C

    @import Foundation;

    Swift

    import Foundation

    Availability

    Available in iOS 5.0 and later

  • count count Property

    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

    Import Statement

    Objective-C

    @import Foundation;

    Swift

    import Foundation

    Availability

    Available in iOS 5.0 and later

  • value value Property

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

    Declaration

    Swift

    var value: AnyObject? { get }

    Objective-C

    @property(readonly, retain) id value

    Import Statement

    Objective-C

    @import Foundation;

    Swift

    import Foundation

    Availability

    Available in iOS 5.0 and later