Trait objc2_app_kit::NSTextFieldDelegate
source · pub unsafe trait NSTextFieldDelegate: NSControlTextEditingDelegate + IsMainThreadOnly {
// Provided methods
unsafe fn textField_textView_candidatesForSelectedRange(
&self,
text_field: &NSTextField,
text_view: &NSTextView,
selected_range: NSRange
) -> Option<Id<NSArray>>
where Self: Sized + Message { ... }
unsafe fn textField_textView_candidates_forSelectedRange(
&self,
text_field: &NSTextField,
text_view: &NSTextView,
candidates: &NSArray<NSTextCheckingResult>,
selected_range: NSRange
) -> Id<NSArray<NSTextCheckingResult>>
where Self: Sized + Message { ... }
unsafe fn textField_textView_shouldSelectCandidateAtIndex(
&self,
text_field: &NSTextField,
text_view: &NSTextView,
index: NSUInteger
) -> bool
where Self: Sized + Message { ... }
}
Available on crate features
NSControl
and NSTextField
only.Provided Methods§
unsafe fn textField_textView_candidatesForSelectedRange( &self, text_field: &NSTextField, text_view: &NSTextView, selected_range: NSRange ) -> Option<Id<NSArray>>
Available on crate features
NSResponder
and NSText
and NSTextView
and NSView
only.unsafe fn textField_textView_candidates_forSelectedRange( &self, text_field: &NSTextField, text_view: &NSTextView, candidates: &NSArray<NSTextCheckingResult>, selected_range: NSRange ) -> Id<NSArray<NSTextCheckingResult>>
Available on crate features
NSResponder
and NSText
and NSTextView
and NSView
only.unsafe fn textField_textView_shouldSelectCandidateAtIndex( &self, text_field: &NSTextField, text_view: &NSTextView, index: NSUInteger ) -> bool
Available on crate features
NSResponder
and NSText
and NSTextView
and NSView
only.