Trait NSMetadataQueryDelegate

Source
pub unsafe trait NSMetadataQueryDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn metadataQuery_replacementObjectForResultObject(
        &self,
        query: &NSMetadataQuery,
        result: &NSMetadataItem,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    unsafe fn metadataQuery_replacementValueForAttribute_value(
        &self,
        query: &NSMetadataQuery,
        attr_name: &NSString,
        attr_value: &AnyObject,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
}
Available on crate feature NSMetadata only.
Expand description

Provided Methods§

Source

unsafe fn metadataQuery_replacementObjectForResultObject( &self, query: &NSMetadataQuery, result: &NSMetadataItem, ) -> Retained<AnyObject>
where Self: Sized + Message,

Source

unsafe fn metadataQuery_replacementValueForAttribute_value( &self, query: &NSMetadataQuery, attr_name: &NSString, attr_value: &AnyObject, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate feature NSString only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSMetadataQueryDelegate

Source§

const NAME: &'static str = "NSMetadataQueryDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSMetadataQueryDelegate

Implementations on Foreign Types§

Source§

impl<T> NSMetadataQueryDelegate for ProtocolObject<T>

Implementors§