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§
fn numberOfItemsInComboBox(&self, combo_box: &NSComboBox) -> NSInteger
Available on crate features
NSControl and NSResponder and NSTextField and NSView only.fn comboBox_objectValueForItemAtIndex( &self, combo_box: &NSComboBox, index: NSInteger, ) -> Option<Retained<AnyObject>>
Available on crate features
NSControl and NSResponder and NSTextField and NSView only.fn comboBox_indexOfItemWithStringValue( &self, combo_box: &NSComboBox, string: &NSString, ) -> NSUInteger
Available on crate features
NSControl and NSResponder and NSTextField and NSView only.fn comboBox_completedString( &self, combo_box: &NSComboBox, string: &NSString, ) -> Option<Retained<NSString>>
Available on crate features
NSControl and NSResponder and NSTextField and NSView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSComboBoxDataSource
Source§impl ProtocolType for dyn NSComboBoxDataSource
impl ProtocolType for dyn NSComboBoxDataSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".