Skip to main content

NSMetadataQueryDelegate

Trait NSMetadataQueryDelegate 

Source
pub unsafe trait NSMetadataQueryDelegate: NSObjectProtocol {
    // Provided methods
    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

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.
§Safety

attr_value should be of the correct type.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSMetadataQueryDelegate

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSMetadataQueryDelegate for ProtocolObject<T>

Implementors§