pub unsafe trait NSEditor: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn discardEditing(&self)
where Self: Sized + Message { ... }
fn commitEditing(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn commitEditingWithDelegate_didCommitSelector_contextInfo(
&self,
delegate: Option<&AnyObject>,
did_commit_selector: Option<Sel>,
context_info: *mut c_void,
)
where Self: Sized + Message { ... }
fn commitEditingAndReturnError(&self) -> Result<(), Retained<NSError>>
where Self: Sized + Message { ... }
}Available on crate feature
NSKeyValueBinding only.Expand description
Provided Methods§
fn discardEditing(&self)
fn commitEditing(&self) -> bool
Sourceunsafe fn commitEditingWithDelegate_didCommitSelector_contextInfo(
&self,
delegate: Option<&AnyObject>,
did_commit_selector: Option<Sel>,
context_info: *mut c_void,
)
unsafe fn commitEditingWithDelegate_didCommitSelector_contextInfo( &self, delegate: Option<&AnyObject>, did_commit_selector: Option<Sel>, context_info: *mut c_void, )
§Safety
delegateshould be of the correct type.did_commit_selectormust be a valid selector.context_infomust be a valid pointer or null.
fn commitEditingAndReturnError(&self) -> Result<(), Retained<NSError>>
Trait Implementations§
Source§impl ProtocolType for dyn NSEditor
impl ProtocolType for dyn NSEditor
impl<T> ImplementedBy<T> for dyn NSEditor
Implementations on Foreign Types§
impl<T> NSEditor for ProtocolObject<T>
Implementors§
impl NSEditor for NSArrayController
Available on crate feature
NSArrayController only.impl NSEditor for NSCollectionViewItem
Available on crate feature
NSCollectionView only.impl NSEditor for NSController
Available on crate feature
NSController only.impl NSEditor for NSDictionaryController
Available on crate feature
NSDictionaryController only.impl NSEditor for NSObjectController
Available on crate feature
NSObjectController only.impl NSEditor for NSPageController
Available on crate feature
NSPageController only.impl NSEditor for NSSplitViewController
Available on crate feature
NSSplitViewController only.impl NSEditor for NSSplitViewItemAccessoryViewController
Available on crate feature
NSSplitViewItemAccessoryViewController only.impl NSEditor for NSTabViewController
Available on crate feature
NSTabViewController only.impl NSEditor for NSTitlebarAccessoryViewController
Available on crate feature
NSTitlebarAccessoryViewController only.impl NSEditor for NSTreeController
Available on crate feature
NSTreeController only.impl NSEditor for NSUserDefaultsController
Available on crate feature
NSUserDefaultsController only.impl NSEditor for NSViewController
Available on crate feature
NSViewController only.