Skip to main content

NSComboBoxCellDataSource

Trait NSComboBoxCellDataSource 

Source
pub unsafe trait NSComboBoxCellDataSource: NSObjectProtocol {
    // Provided methods
    fn numberOfItemsInComboBoxCell(
        &self,
        combo_box_cell: &NSComboBoxCell,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    fn comboBoxCell_objectValueForItemAtIndex(
        &self,
        combo_box_cell: &NSComboBoxCell,
        index: NSInteger,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    fn comboBoxCell_indexOfItemWithStringValue(
        &self,
        combo_box_cell: &NSComboBoxCell,
        string: &NSString,
    ) -> NSUInteger
       where Self: Sized + Message { ... }
    fn comboBoxCell_completedString(
        &self,
        combo_box_cell: &NSComboBoxCell,
        uncompleted_string: &NSString,
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSComboBoxCell only.
Expand description

Provided Methods§

Source

fn numberOfItemsInComboBoxCell( &self, combo_box_cell: &NSComboBoxCell, ) -> NSInteger
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
Source

fn comboBoxCell_objectValueForItemAtIndex( &self, combo_box_cell: &NSComboBoxCell, index: NSInteger, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
Source

fn comboBoxCell_indexOfItemWithStringValue( &self, combo_box_cell: &NSComboBoxCell, string: &NSString, ) -> NSUInteger
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
Source

fn comboBoxCell_completedString( &self, combo_box_cell: &NSComboBoxCell, uncompleted_string: &NSString, ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSComboBoxCellDataSource

Source§

impl ProtocolType for dyn NSComboBoxCellDataSource

Source§

const NAME: &'static str = "NSComboBoxCellDataSource"

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

Implementors§