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§
fn textStorage(&self) -> Option<Retained<NSTextStorage>>
Sourcefn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
Setter for textStorage.
fn processEditingForTextStorage_edited_range_changeInLength_invalidatedRange( &self, text_storage: &NSTextStorage, edit_mask: NSTextStorageEditActions, new_char_range: NSRange, delta: NSInteger, invalidated_char_range: NSRange, )
fn performEditingTransactionForTextStorage_usingBlock( &self, text_storage: &NSTextStorage, transaction: &DynBlock<dyn Fn() + '_>, )
Available on crate feature
block2 only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSTextStorageObserving
Source§impl ProtocolType for dyn NSTextStorageObserving
impl ProtocolType for dyn NSTextStorageObserving
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> NSTextStorageObserving for ProtocolObject<T>where
T: ?Sized + NSTextStorageObserving,
Implementors§
impl NSTextStorageObserving for NSTextContentStorage
Available on crate feature
NSTextContentManager only.