Trait NSComboBoxCellDataSource

Source
pub unsafe trait NSComboBoxCellDataSource: NSObjectProtocol {
    // Provided methods
    unsafe fn numberOfItemsInComboBoxCell(
        &self,
        combo_box_cell: &NSComboBoxCell,
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn comboBoxCell_objectValueForItemAtIndex(
        &self,
        combo_box_cell: &NSComboBoxCell,
        index: NSInteger,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    unsafe fn comboBoxCell_indexOfItemWithStringValue(
        &self,
        combo_box_cell: &NSComboBoxCell,
        string: &NSString,
    ) -> NSUInteger
       where Self: Sized + Message { ... }
    unsafe 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

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

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

unsafe 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

unsafe 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

unsafe 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 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
Source§

impl<T> ImplementedBy<T> for dyn NSComboBoxCellDataSource

Implementations on Foreign Types§

Source§

impl<T> NSComboBoxCellDataSource for ProtocolObject<T>

Implementors§