NSComboBoxDataSource

Trait NSComboBoxDataSource 

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

Provided Methods§

Source

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

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

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

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

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. 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 NSComboBoxDataSource

Implementations on Foreign Types§

Source§

impl<T> NSComboBoxDataSource for ProtocolObject<T>

Implementors§