Trait objc2_app_kit::NSEditor

source ·
pub unsafe trait NSEditor: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn discardEditing(&self)
       where Self: Sized + Message { ... }
    unsafe 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 { ... }
    unsafe fn commitEditingAndReturnError(&self) -> Result<(), Id<NSError>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSKeyValueBinding only.

Provided Methods§

source

unsafe fn discardEditing(&self)
where Self: Sized + Message,

source

unsafe fn commitEditing(&self) -> bool
where Self: Sized + Message,

source

unsafe fn commitEditingWithDelegate_didCommitSelector_contextInfo( &self, delegate: Option<&AnyObject>, did_commit_selector: Option<Sel>, context_info: *mut c_void )
where Self: Sized + Message,

source

unsafe fn commitEditingAndReturnError(&self) -> Result<(), Id<NSError>>
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn NSEditor

source§

const NAME: &'static str = "NSEditor"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn NSEditor
where T: ?Sized + Message + NSEditor,

Implementations on Foreign Types§

source§

impl<T> NSEditor for ProtocolObject<T>
where T: ?Sized + NSEditor,

Implementors§

source§

impl NSEditor for NSArrayController

Available on crate features NSController and NSObjectController and NSArrayController only.
source§

impl NSEditor for NSCollectionViewItem

Available on crate features NSResponder and NSViewController and NSCollectionView only.
source§

impl NSEditor for NSController

Available on crate feature NSController only.
source§

impl NSEditor for NSDictionaryController

Available on crate features NSArrayController and NSController and NSObjectController and NSDictionaryController only.
source§

impl NSEditor for NSObjectController

Available on crate features NSController and NSObjectController only.
source§

impl NSEditor for NSPageController

Available on crate features NSResponder and NSViewController and NSPageController only.
source§

impl NSEditor for NSSplitViewController

Available on crate features NSResponder and NSViewController and NSSplitViewController only.
source§

impl NSEditor for NSTabViewController

Available on crate features NSResponder and NSViewController and NSTabViewController only.
source§

impl NSEditor for NSTitlebarAccessoryViewController

Available on crate features NSResponder and NSViewController and NSTitlebarAccessoryViewController only.
source§

impl NSEditor for NSTreeController

Available on crate features NSController and NSObjectController and NSTreeController only.
source§

impl NSEditor for NSUserDefaultsController

Available on crate features NSController and NSUserDefaultsController only.
source§

impl NSEditor for NSViewController

Available on crate features NSResponder and NSViewController only.