Trait objc2_app_kit::NSComboBoxDataSource

source ·
pub unsafe trait NSComboBoxDataSource: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn numberOfItemsInComboBox(
        &self,
        combo_box: &NSComboBox
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn comboBox_objectValueForItemAtIndex(
        &self,
        combo_box: &NSComboBox,
        index: NSInteger
    ) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn comboBox_indexOfItemWithStringValue(
        &self,
        combo_box: &NSComboBox,
        string: &NSString
    ) -> NSUInteger
       where Self: Sized + Message { ... }
    unsafe fn comboBox_completedString(
        &self,
        combo_box: &NSComboBox,
        string: &NSString
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSComboBox only.

Provided Methods§

source

unsafe fn numberOfItemsInComboBox(&self, combo_box: &NSComboBox) -> NSInteger
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSTextField and NSView only.
source

unsafe fn comboBox_objectValueForItemAtIndex( &self, combo_box: &NSComboBox, index: NSInteger ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSTextField and NSView only.
source

unsafe fn comboBox_indexOfItemWithStringValue( &self, combo_box: &NSComboBox, string: &NSString ) -> NSUInteger
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSTextField and NSView only.
source

unsafe fn comboBox_completedString( &self, combo_box: &NSComboBox, string: &NSString ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSTextField and NSView only.

Trait Implementations§

source§

impl ProtocolType for dyn NSComboBoxDataSource

source§

const NAME: &'static str = "NSComboBoxDataSource"

The name of the Objective-C protocol that this type represents.
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 NSComboBoxDataSource

Implementations on Foreign Types§

source§

impl<T> NSComboBoxDataSource for ProtocolObject<T>

Implementors§