pub unsafe trait NSControlTextEditingDelegate: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn controlTextDidBeginEditing(&self, obj: &NSNotification)
where Self: Sized + Message { ... }
fn controlTextDidEndEditing(&self, obj: &NSNotification)
where Self: Sized + Message { ... }
fn controlTextDidChange(&self, obj: &NSNotification)
where Self: Sized + Message { ... }
fn control_textShouldBeginEditing(
&self,
control: &NSControl,
field_editor: &NSText,
) -> bool
where Self: Sized + Message { ... }
fn control_textShouldEndEditing(
&self,
control: &NSControl,
field_editor: &NSText,
) -> bool
where Self: Sized + Message { ... }
fn control_didFailToFormatString_errorDescription(
&self,
control: &NSControl,
string: &NSString,
error: Option<&NSString>,
) -> bool
where Self: Sized + Message { ... }
fn control_didFailToValidatePartialString_errorDescription(
&self,
control: &NSControl,
string: &NSString,
error: Option<&NSString>,
)
where Self: Sized + Message { ... }
unsafe fn control_isValidObject(
&self,
control: &NSControl,
obj: Option<&AnyObject>,
) -> bool
where Self: Sized + Message { ... }
unsafe fn control_textView_doCommandBySelector(
&self,
control: &NSControl,
text_view: &NSTextView,
command_selector: Sel,
) -> bool
where Self: Sized + Message { ... }
unsafe fn control_textView_completions_forPartialWordRange_indexOfSelectedItem(
&self,
control: &NSControl,
text_view: &NSTextView,
words: &NSArray<NSString>,
char_range: NSRange,
index: NonNull<NSInteger>,
) -> Retained<NSArray<NSString>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSControl
only.Expand description
Provided Methods§
fn controlTextDidBeginEditing(&self, obj: &NSNotification)
fn controlTextDidEndEditing(&self, obj: &NSNotification)
fn controlTextDidChange(&self, obj: &NSNotification)
fn control_textShouldBeginEditing( &self, control: &NSControl, field_editor: &NSText, ) -> bool
Available on crate features
NSResponder
and NSText
and NSView
only.fn control_textShouldEndEditing( &self, control: &NSControl, field_editor: &NSText, ) -> bool
Available on crate features
NSResponder
and NSText
and NSView
only.fn control_didFailToFormatString_errorDescription( &self, control: &NSControl, string: &NSString, error: Option<&NSString>, ) -> bool
Available on crate features
NSResponder
and NSView
only.fn control_didFailToValidatePartialString_errorDescription( &self, control: &NSControl, string: &NSString, error: Option<&NSString>, )
Available on crate features
NSResponder
and NSView
only.Sourceunsafe fn control_isValidObject(
&self,
control: &NSControl,
obj: Option<&AnyObject>,
) -> bool
Available on crate features NSResponder
and NSView
only.
unsafe fn control_isValidObject( &self, control: &NSControl, obj: Option<&AnyObject>, ) -> bool
NSResponder
and NSView
only.§Safety
obj
should be of the correct type.
Sourceunsafe fn control_textView_doCommandBySelector(
&self,
control: &NSControl,
text_view: &NSTextView,
command_selector: Sel,
) -> bool
Available on crate features NSResponder
and NSText
and NSTextView
and NSView
only.
unsafe fn control_textView_doCommandBySelector( &self, control: &NSControl, text_view: &NSTextView, command_selector: Sel, ) -> bool
NSResponder
and NSText
and NSTextView
and NSView
only.§Safety
command_selector
must be a valid selector.
Sourceunsafe fn control_textView_completions_forPartialWordRange_indexOfSelectedItem(
&self,
control: &NSControl,
text_view: &NSTextView,
words: &NSArray<NSString>,
char_range: NSRange,
index: NonNull<NSInteger>,
) -> Retained<NSArray<NSString>>
Available on crate features NSResponder
and NSText
and NSTextView
and NSView
only.
unsafe fn control_textView_completions_forPartialWordRange_indexOfSelectedItem( &self, control: &NSControl, text_view: &NSTextView, words: &NSArray<NSString>, char_range: NSRange, index: NonNull<NSInteger>, ) -> Retained<NSArray<NSString>>
NSResponder
and NSText
and NSTextView
and NSView
only.§Safety
index
must be a valid pointer.