| 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 |
The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object.
Returns the attribute name for the receiver’s result group.
- (NSString *)attribute
The attribute name for the receiver’s result group.
NSMetadata.hReturns the query result at a specific index.
- (id)resultAtIndex:(NSUInteger)index
The index of the desired result.
The query result at a specific index.
For performance reasons, you should use this method when retrieving a specific result, rather than they array returned by results.
NSMetadata.hReturns the number of results returned by the receiver.
- (NSUInteger)resultCount
The number of results returned by the receiver.
For performance reasons, you should use this method, rather than invoking count on results.
NSMetadata.hReturns an array containing the result objects for the receiver.
- (NSArray *)results
An array containing the result objects for the receiver.
The results array is a proxy object that is primarily intended for use with Cocoa bindings. While it is possible to copy the proxy array to get a “snapshot” of the complete current query results, it is generally not recommended due to performance and memory issues. To access individual result array elements you should instead use the resultCount and resultAtIndex: methods.
NSMetadata.hReturns an array containing the subgroups of the receiver.
- (NSArray *)subgroups
An array containing the subgroups of the receiver.
NSMetadata.hReturns the value of the attribute name for the receiver.
- (id)value
The value of the attribute name for the receiver.
NSMetadata.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-04-02)