Next Page > Hide TOC

NSMetadataItem Class Reference

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

Overview

The NSMetadataItem class represents the metadata associated with a file, providing a simple interface to retrieve the available attribute names and values.

Adopted Protocols

NSCopying

Tasks

Getting Item Attributes

Instance Methods

attributes

Returns an array containing the attribute names of the receiver’s values.

- (NSArray *)attributes

Return Value

An array containing the attribute names of the receiver’s values.

Availability
Declared In
NSMetadata.h

valueForAttribute:

Returns the receiver’s metadata attribute name specified by a given key.

- (id)valueForAttribute:(NSString *)key

Parameters
key

The name of a metadata attribute.

Return Value

The receiver’s metadata attribute name specified by key.

Availability
Related Sample Code
Declared In
NSMetadata.h

valuesForAttributes:

Returns a dictionary containing the key-value pairs for the attribute names specified by a given array of keys.

- (NSDictionary *)valuesForAttributes:(NSArray *)keys

Parameters
keys

An array containing NSString objects that specify the names of a metadata attributes.

Return Value

A dictionary containing the key-value pairs for the attribute names specified by keys.

Availability
Declared In
NSMetadata.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


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.