Skip to main content

NSUserInterfaceItemSearching

Trait NSUserInterfaceItemSearching 

Source
pub unsafe trait NSUserInterfaceItemSearching: NSObjectProtocol {
    // Provided methods
    fn searchForItemsWithSearchString_resultLimit_matchedItemHandler(
        &self,
        search_string: &NSString,
        result_limit: NSInteger,
        handle_matched_items: &DynBlock<dyn Fn(NonNull<NSArray>)>,
    )
       where Self: Sized + Message { ... }
    unsafe fn localizedTitlesForItem(
        &self,
        item: &AnyObject,
    ) -> Retained<NSArray<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn performActionForItem(&self, item: &AnyObject)
       where Self: Sized + Message { ... }
    fn showAllHelpTopicsForSearchString(&self, search_string: &NSString)
       where Self: Sized + Message { ... }
}
Available on crate feature NSUserInterfaceItemSearching only.
Expand description

Provided Methods§

Source

fn searchForItemsWithSearchString_resultLimit_matchedItemHandler( &self, search_string: &NSString, result_limit: NSInteger, handle_matched_items: &DynBlock<dyn Fn(NonNull<NSArray>)>, )
where Self: Sized + Message,

Available on crate feature block2 only.
Source

unsafe fn localizedTitlesForItem( &self, item: &AnyObject, ) -> Retained<NSArray<NSString>>
where Self: Sized + Message,

§Safety

item should be of the correct type.

Source

unsafe fn performActionForItem(&self, item: &AnyObject)
where Self: Sized + Message,

§Safety

item should be of the correct type.

Source

fn showAllHelpTopicsForSearchString(&self, search_string: &NSString)
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSUserInterfaceItemSearching

Source§

impl ProtocolType for dyn NSUserInterfaceItemSearching

Source§

const NAME: &'static str = "NSUserInterfaceItemSearching"

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> NSUserInterfaceItemSearching for ProtocolObject<T>

Implementors§