Skip to main content

NSTextStorageDelegate

Trait NSTextStorageDelegate 

Source
pub unsafe trait NSTextStorageDelegate: NSObjectProtocol {
    // Provided methods
    fn textStorage_willProcessEditing_range_changeInLength(
        &self,
        text_storage: &NSTextStorage,
        edited_mask: NSTextStorageEditActions,
        edited_range: NSRange,
        delta: NSInteger,
    )
       where Self: Sized + Message { ... }
    fn textStorage_didProcessEditing_range_changeInLength(
        &self,
        text_storage: &NSTextStorage,
        edited_mask: NSTextStorageEditActions,
        edited_range: NSRange,
        delta: NSInteger,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextStorage only.
Expand description

** NSTextStorage delegate methods ***

See also Apple’s documentation

Provided Methods§

Source

fn textStorage_willProcessEditing_range_changeInLength( &self, text_storage: &NSTextStorage, edited_mask: NSTextStorageEditActions, edited_range: NSRange, delta: NSInteger, )
where Self: Sized + Message,

Source

fn textStorage_didProcessEditing_range_changeInLength( &self, text_storage: &NSTextStorage, edited_mask: NSTextStorageEditActions, edited_range: NSRange, delta: NSInteger, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextStorageDelegate

Source§

impl ProtocolType for dyn NSTextStorageDelegate

Source§

const NAME: &'static str = "NSTextStorageDelegate"

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> NSTextStorageDelegate for ProtocolObject<T>

Implementors§