Skip to main content

NSTextStorageObserving

Trait NSTextStorageObserving 

Source
pub unsafe trait NSTextStorageObserving: NSObjectProtocol {
    // Provided methods
    fn textStorage(&self) -> Option<Retained<NSTextStorage>>
       where Self: Sized + Message { ... }
    fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
       where Self: Sized + Message { ... }
    fn processEditingForTextStorage_edited_range_changeInLength_invalidatedRange(
        &self,
        text_storage: &NSTextStorage,
        edit_mask: NSTextStorageEditActions,
        new_char_range: NSRange,
        delta: NSInteger,
        invalidated_char_range: NSRange,
    )
       where Self: Sized + Message { ... }
    fn performEditingTransactionForTextStorage_usingBlock(
        &self,
        text_storage: &NSTextStorage,
        transaction: &DynBlock<dyn Fn() + '_>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextStorage only.
Expand description

Provided Methods§

Source

fn textStorage(&self) -> Option<Retained<NSTextStorage>>
where Self: Sized + Message,

Source

fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
where Self: Sized + Message,

Setter for textStorage.

Source

fn processEditingForTextStorage_edited_range_changeInLength_invalidatedRange( &self, text_storage: &NSTextStorage, edit_mask: NSTextStorageEditActions, new_char_range: NSRange, delta: NSInteger, invalidated_char_range: NSRange, )
where Self: Sized + Message,

Source

fn performEditingTransactionForTextStorage_usingBlock( &self, text_storage: &NSTextStorage, transaction: &DynBlock<dyn Fn() + '_>, )
where Self: Sized + Message,

Available on crate feature block2 only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextStorageObserving

Source§

impl ProtocolType for dyn NSTextStorageObserving

Source§

const NAME: &'static str = "NSTextStorageObserving"

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

Implementors§

Source§

impl NSTextStorageObserving for NSTextContentStorage

Available on crate feature NSTextContentManager only.