Skip to main content

NSTextDelegate

Trait NSTextDelegate 

Source
pub unsafe trait NSTextDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn textShouldBeginEditing(&self, text_object: &NSText) -> bool
       where Self: Sized + Message { ... }
    fn textShouldEndEditing(&self, text_object: &NSText) -> bool
       where Self: Sized + Message { ... }
    fn textDidBeginEditing(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    fn textDidEndEditing(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
    fn textDidChange(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSText only.
Expand description

Provided Methods§

Source

fn textShouldBeginEditing(&self, text_object: &NSText) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn textShouldEndEditing(&self, text_object: &NSText) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn textDidBeginEditing(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn textDidEndEditing(&self, notification: &NSNotification)
where Self: Sized + Message,

Source

fn textDidChange(&self, notification: &NSNotification)
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextDelegate

Source§

impl ProtocolType for dyn NSTextDelegate

Source§

const NAME: &'static str = "NSTextDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSTextDelegate for ProtocolObject<T>
where T: ?Sized + NSTextDelegate,

Implementors§

Source§

impl NSTextDelegate for NSOutlineView

Available on crate feature NSOutlineView only.
Source§

impl NSTextDelegate for NSTableView

Available on crate feature NSTableView only.