pub unsafe trait NSControlTextEditingDelegate: NSObjectProtocol + IsMainThreadOnly {
// Provided methods
unsafe fn controlTextDidBeginEditing(&self, obj: &NSNotification)
where Self: Sized + Message { ... }
unsafe fn controlTextDidEndEditing(&self, obj: &NSNotification)
where Self: Sized + Message { ... }
unsafe fn controlTextDidChange(&self, obj: &NSNotification)
where Self: Sized + Message { ... }
unsafe fn control_textShouldBeginEditing(
&self,
control: &NSControl,
field_editor: &NSText
) -> bool
where Self: Sized + Message { ... }
unsafe fn control_textShouldEndEditing(
&self,
control: &NSControl,
field_editor: &NSText
) -> bool
where Self: Sized + Message { ... }
unsafe fn control_didFailToFormatString_errorDescription(
&self,
control: &NSControl,
string: &NSString,
error: Option<&NSString>
) -> bool
where Self: Sized + Message { ... }
unsafe 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>
) -> Id<NSArray<NSString>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSControl
only.Provided Methods§
unsafe fn controlTextDidBeginEditing(&self, obj: &NSNotification)
unsafe fn controlTextDidEndEditing(&self, obj: &NSNotification)
unsafe fn controlTextDidChange(&self, obj: &NSNotification)
unsafe fn control_textShouldBeginEditing( &self, control: &NSControl, field_editor: &NSText ) -> bool
Available on crate features
NSResponder
and NSText
and NSView
only.unsafe fn control_textShouldEndEditing( &self, control: &NSControl, field_editor: &NSText ) -> bool
Available on crate features
NSResponder
and NSText
and NSView
only.unsafe fn control_didFailToFormatString_errorDescription( &self, control: &NSControl, string: &NSString, error: Option<&NSString> ) -> bool
Available on crate features
NSResponder
and NSView
only.unsafe fn control_didFailToValidatePartialString_errorDescription( &self, control: &NSControl, string: &NSString, error: Option<&NSString> )
Available on crate features
NSResponder
and NSView
only.unsafe fn control_isValidObject( &self, control: &NSControl, obj: Option<&AnyObject> ) -> bool
Available on crate features
NSResponder
and NSView
only.unsafe 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_completions_forPartialWordRange_indexOfSelectedItem( &self, control: &NSControl, text_view: &NSTextView, words: &NSArray<NSString>, char_range: NSRange, index: NonNull<NSInteger> ) -> Id<NSArray<NSString>>
Available on crate features
NSResponder
and NSText
and NSTextView
and NSView
only.