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 |
The NSMetadataItem
class represents the metadata associated with a file, providing a simple interface to retrieve the available attribute names and values.
Returns an array containing the attribute names of the receiver’s values.
- (NSArray *)attributes
An array containing the attribute names of the receiver’s values.
NSMetadata.h
Returns the receiver’s metadata attribute name specified by a given key.
- (id)valueForAttribute:(NSString *)key
The name of a metadata attribute.
The receiver’s metadata attribute name specified by key.
NSMetadata.h
Returns a dictionary containing the key-value pairs for the attribute names specified by a given array of keys.
- (NSDictionary *)valuesForAttributes:(NSArray *)keys
An array containing NSString
objects that specify the names of a metadata attributes.
A dictionary containing the key-value pairs for the attribute names specified by keys.
NSMetadata.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)