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§

source

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,

Available on crate features NSResponder and NSView only.
source

unsafe fn tokenField_shouldAddObjects_atIndex( &self, token_field: &NSTokenField, tokens: &NSArray, index: NSUInteger ) -> Id<NSArray>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn tokenField_displayStringForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> Option<Id<NSString>>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn tokenField_editingStringForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> Option<Id<NSString>>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn tokenField_representedObjectForEditingString( &self, token_field: &NSTokenField, editing_string: &NSString ) -> Option<Id<AnyObject>>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn tokenField_writeRepresentedObjects_toPasteboard( &self, token_field: &NSTokenField, objects: &NSArray, pboard: &NSPasteboard ) -> bool
where Self: Sized + Message,

Available on crate features NSPasteboard and NSResponder and NSView only.
source

unsafe fn tokenField_readFromPasteboard( &self, token_field: &NSTokenField, pboard: &NSPasteboard ) -> Option<Id<NSArray>>
where Self: Sized + Message,

Available on crate features NSPasteboard and NSResponder and NSView only.
source

unsafe fn tokenField_menuForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> Option<Id<NSMenu>>
where Self: Sized + Message,

Available on crate features NSMenu and NSResponder and NSView only.
source

unsafe fn tokenField_hasMenuForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn tokenField_styleForRepresentedObject( &self, token_field: &NSTokenField, represented_object: &AnyObject ) -> NSTokenStyle
where Self: Sized + Message,

Available on crate features NSResponder and NSTokenFieldCell and NSView only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTokenFieldDelegate

source§

const NAME: &'static str = "NSTokenFieldDelegate"

The name of the Objective-C protocol that this type represents.
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 NSTokenFieldDelegate

Implementations on Foreign Types§

source§

impl<T> NSTokenFieldDelegate for ProtocolObject<T>

Implementors§