pub unsafe trait NSTextStorageObserving: NSObjectProtocol {
// Provided methods
unsafe fn textStorage(&self) -> Option<Retained<NSTextStorage>>
where Self: Sized + Message { ... }
unsafe fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
where Self: Sized + Message { ... }
unsafe 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 { ... }
unsafe fn performEditingTransactionForTextStorage_usingBlock(
&self,
text_storage: &NSTextStorage,
transaction: &Block<dyn Fn() + '_>
)
where Self: Sized + Message { ... }
}
Available on crate feature
NSTextStorage
only.Provided Methods§
unsafe fn textStorage(&self) -> Option<Retained<NSTextStorage>>
unsafe fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
unsafe fn processEditingForTextStorage_edited_range_changeInLength_invalidatedRange( &self, text_storage: &NSTextStorage, edit_mask: NSTextStorageEditActions, new_char_range: NSRange, delta: NSInteger, invalidated_char_range: NSRange )
unsafe fn performEditingTransactionForTextStorage_usingBlock( &self, text_storage: &NSTextStorage, transaction: &Block<dyn Fn() + '_> )
Available on crate feature
block2
only.Trait Implementations§
source§impl ProtocolType for dyn NSTextStorageObserving
impl ProtocolType for dyn NSTextStorageObserving
impl<T> ImplementedBy<T> for dyn NSTextStorageObserving
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.