Next Page > Hide TOC

NSMetadataQueryAttributeValueTuple Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in Mac 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
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
Declared In
NSMetadata.h

value

Returns the receiver’s attribute value.

- (id)value

Return Value

The receiver’s attribute value.

Availability
Declared In
NSMetadata.h

Next Page > Hide TOC


© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-04-02)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.