NSMetadataQueryAttributeValueTuple Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in OS X v10.4 and later.
Companion guide
Declared in
NSMetadata.h

Overview

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.

Tasks

Getting Query Attribute/Value Information

Instance Methods

attribute

Returns the receiver’s attribute name.

- (NSString *)attribute
Return Value

The receiver’s attribute name.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSMetadata.h

count

Returns the number of instances of the value that exist for the attribute name of the receiver.

- (NSUInteger)count
Return Value

The number of instantes of the value that exist for the attribute name of the receiver.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSMetadata.h

value

Returns the receiver’s attribute value.

- (id)value
Return Value

The receiver’s attribute value.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSMetadata.h