Protocol: NSMetadataQueryDelegate
Overview
The NSMetadataQueryDelegate protocol defines the optional methods implemented by delegates of NSMetadataQuery objects.Implemented by the delegate to return a different object for a specific query result object.Implemented by the delegate to return a different value for a specific attribute.
Instance Method Summary (collapse)
-
- metadataQuery:replacementObjectForResultObject:
Implemented by the delegate to return a different object for a specific query result object.
-
- metadataQuery:replacementValueForAttribute:value:
Implemented by the delegate to return a different value for a specific attribute.
Instance Method Details
- (Object) metadataQuery(query, replacementObjectForResultObject:result)
Implemented by the delegate to return a different object for a specific query result object. By default query result objects are instances of the NSMetadataItem class. By implementing this method, you can return an object of a different class type for the specified result object.
- (Object) metadataQuery(query, replacementValueForAttribute:attribute, value:attributeValue)
Implemented by the delegate to return a different value for a specific attribute. The delegate implementation of this method could convert specific query attribute values to other attribute values, for example, converting date object values to formatted strings for display.