Trait objc2_app_kit::NSTokenFieldDelegate
source · pub unsafe trait NSTokenFieldDelegate: NSTextFieldDelegate + IsMainThreadOnly {
// Provided methods
unsafe fn tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem(
&self,
token_field: &NSTokenField,
substring: &NSString,
token_index: NSInteger,
selected_index: *mut NSInteger
) -> Option<Id<NSArray>>
where Self: Sized + Message { ... }
unsafe fn tokenField_shouldAddObjects_atIndex(
&self,
token_field: &NSTokenField,
tokens: &NSArray,
index: NSUInteger
) -> Id<NSArray>
where Self: Sized + Message { ... }
unsafe fn tokenField_displayStringForRepresentedObject(
&self,
token_field: &NSTokenField,
represented_object: &AnyObject
) -> Option<Id<NSString>>
where Self: Sized + Message { ... }
unsafe fn tokenField_editingStringForRepresentedObject(
&self,
token_field: &NSTokenField,
represented_object: &AnyObject
) -> Option<Id<NSString>>
where Self: Sized + Message { ... }
unsafe fn tokenField_representedObjectForEditingString(
&self,
token_field: &NSTokenField,
editing_string: &NSString
) -> Option<Id<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn tokenField_writeRepresentedObjects_toPasteboard(
&self,
token_field: &NSTokenField,
objects: &NSArray,
pboard: &NSPasteboard
) -> bool
where Self: Sized + Message { ... }
unsafe fn tokenField_readFromPasteboard(
&self,
token_field: &NSTokenField,
pboard: &NSPasteboard
) -> Option<Id<NSArray>>
where Self: Sized + Message { ... }
unsafe fn tokenField_menuForRepresentedObject(
&self,
token_field: &NSTokenField,
represented_object: &AnyObject
) -> Option<Id<NSMenu>>
where Self: Sized + Message { ... }
unsafe fn tokenField_hasMenuForRepresentedObject(
&self,
token_field: &NSTokenField,
represented_object: &AnyObject
) -> bool
where Self: Sized + Message { ... }
unsafe fn tokenField_styleForRepresentedObject(
&self,
token_field: &NSTokenField,
represented_object: &AnyObject
) -> NSTokenStyle
where Self: Sized + Message { ... }
}
Available on crate features
NSControl
and NSTextField
and NSTokenField
only.Provided Methods§
unsafe fn tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem( &self, token_field: &NSTokenField, substring: &NSString, token_index: NSInteger, selected_index: *mut NSInteger ) -> Option<Id<NSArray>>
Available on crate features
NSResponder
and NSView
only.unsafe fn tokenField_shouldAddObjects_atIndex( &self, token_field: &NSTokenField, tokens: &NSArray, index: NSUInteger ) -> Id<NSArray>
Available on crate features
NSResponder
and NSView
only.unsafe fn tokenField_displayStringForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> Option<Id<NSString>>
Available on crate features
NSResponder
and NSView
only.unsafe fn tokenField_editingStringForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> Option<Id<NSString>>
Available on crate features
NSResponder
and NSView
only.unsafe fn tokenField_representedObjectForEditingString( &self, token_field: &NSTokenField, editing_string: &NSString ) -> Option<Id<AnyObject>>
Available on crate features
NSResponder
and NSView
only.unsafe fn tokenField_writeRepresentedObjects_toPasteboard( &self, token_field: &NSTokenField, objects: &NSArray, pboard: &NSPasteboard ) -> bool
Available on crate features
NSPasteboard
and NSResponder
and NSView
only.unsafe fn tokenField_readFromPasteboard( &self, token_field: &NSTokenField, pboard: &NSPasteboard ) -> Option<Id<NSArray>>
Available on crate features
NSPasteboard
and NSResponder
and NSView
only.Available on crate features
NSMenu
and NSResponder
and NSView
only.unsafe fn tokenField_hasMenuForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> bool
Available on crate features
NSResponder
and NSView
only.unsafe fn tokenField_styleForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> NSTokenStyle
Available on crate features
NSResponder
and NSTokenFieldCell
and NSView
only.