Trait NSTextDelegate

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

Provided Methods§

Source

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

Available on crate features NSResponder and NSView only.
Source

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

Available on crate features NSResponder and NSView only.
Source

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

Source

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

Source

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

Trait Implementations§

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
Source§

impl<T> ImplementedBy<T> for dyn NSTextDelegate

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.