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§
unsafe fn numberOfItemsInComboBox(&self, combo_box: &NSComboBox) -> NSInteger
Available on crate features
NSControl
and NSResponder
and NSTextField
and NSView
only.unsafe fn comboBox_objectValueForItemAtIndex( &self, combo_box: &NSComboBox, index: NSInteger ) -> Option<Retained<AnyObject>>
Available on crate features
NSControl
and NSResponder
and NSTextField
and NSView
only.unsafe fn comboBox_indexOfItemWithStringValue( &self, combo_box: &NSComboBox, string: &NSString ) -> NSUInteger
Available on crate features
NSControl
and NSResponder
and NSTextField
and NSView
only.unsafe fn comboBox_completedString( &self, combo_box: &NSComboBox, string: &NSString ) -> Option<Retained<NSString>>
Available on crate features
NSControl
and NSResponder
and NSTextField
and NSView
only.