pub unsafe trait NSTokenFieldCellDelegate: NSObjectProtocol + IsMainThreadOnly {
// Provided methods
unsafe fn tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem(
&self,
token_field_cell: &NSTokenFieldCell,
substring: &NSString,
token_index: NSInteger,
selected_index: NonNull<NSInteger>
) -> Id<NSArray>
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_shouldAddObjects_atIndex(
&self,
token_field_cell: &NSTokenFieldCell,
tokens: &NSArray,
index: NSUInteger
) -> Id<NSArray>
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_displayStringForRepresentedObject(
&self,
token_field_cell: &NSTokenFieldCell,
represented_object: &AnyObject
) -> Option<Id<NSString>>
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_editingStringForRepresentedObject(
&self,
token_field_cell: &NSTokenFieldCell,
represented_object: &AnyObject
) -> Option<Id<NSString>>
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_representedObjectForEditingString(
&self,
token_field_cell: &NSTokenFieldCell,
editing_string: &NSString
) -> Option<Id<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_writeRepresentedObjects_toPasteboard(
&self,
token_field_cell: &NSTokenFieldCell,
objects: &NSArray,
pboard: &NSPasteboard
) -> bool
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_readFromPasteboard(
&self,
token_field_cell: &NSTokenFieldCell,
pboard: &NSPasteboard
) -> Option<Id<NSArray>>
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_menuForRepresentedObject(
&self,
token_field_cell: &NSTokenFieldCell,
represented_object: &AnyObject
) -> Option<Id<NSMenu>>
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_hasMenuForRepresentedObject(
&self,
token_field_cell: &NSTokenFieldCell,
represented_object: &AnyObject
) -> bool
where Self: Sized + Message { ... }
unsafe fn tokenFieldCell_styleForRepresentedObject(
&self,
token_field_cell: &NSTokenFieldCell,
represented_object: &AnyObject
) -> NSTokenStyle
where Self: Sized + Message { ... }
}
Available on crate feature
NSTokenFieldCell
only.Provided Methods§
unsafe fn tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem( &self, token_field_cell: &NSTokenFieldCell, substring: &NSString, token_index: NSInteger, selected_index: NonNull<NSInteger> ) -> Id<NSArray>
Available on crate features
NSActionCell
and NSCell
and NSTextFieldCell
only.unsafe fn tokenFieldCell_shouldAddObjects_atIndex( &self, token_field_cell: &NSTokenFieldCell, tokens: &NSArray, index: NSUInteger ) -> Id<NSArray>
Available on crate features
NSActionCell
and NSCell
and NSTextFieldCell
only.unsafe fn tokenFieldCell_displayStringForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> Option<Id<NSString>>
Available on crate features
NSActionCell
and NSCell
and NSTextFieldCell
only.unsafe fn tokenFieldCell_editingStringForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> Option<Id<NSString>>
Available on crate features
NSActionCell
and NSCell
and NSTextFieldCell
only.unsafe fn tokenFieldCell_representedObjectForEditingString( &self, token_field_cell: &NSTokenFieldCell, editing_string: &NSString ) -> Option<Id<AnyObject>>
Available on crate features
NSActionCell
and NSCell
and NSTextFieldCell
only.unsafe fn tokenFieldCell_writeRepresentedObjects_toPasteboard( &self, token_field_cell: &NSTokenFieldCell, objects: &NSArray, pboard: &NSPasteboard ) -> bool
Available on crate features
NSActionCell
and NSCell
and NSPasteboard
and NSTextFieldCell
only.unsafe fn tokenFieldCell_readFromPasteboard( &self, token_field_cell: &NSTokenFieldCell, pboard: &NSPasteboard ) -> Option<Id<NSArray>>
Available on crate features
NSActionCell
and NSCell
and NSPasteboard
and NSTextFieldCell
only.Available on crate features
NSActionCell
and NSCell
and NSMenu
and NSTextFieldCell
only.unsafe fn tokenFieldCell_hasMenuForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> bool
Available on crate features
NSActionCell
and NSCell
and NSTextFieldCell
only.unsafe fn tokenFieldCell_styleForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> NSTokenStyle
Available on crate features
NSActionCell
and NSCell
and NSTextFieldCell
only.