Trait NSEditor

Source
pub unsafe trait NSEditor: NSObjectProtocol + MainThreadOnly {
    // 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<(), Retained<NSError>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSKeyValueBinding only.
Expand description

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<(), Retained<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. Read more
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 feature NSArrayController only.
Source§

impl NSEditor for NSCollectionViewItem

Available on crate feature NSCollectionView only.
Source§

impl NSEditor for NSController

Available on crate feature NSController only.
Source§

impl NSEditor for NSDictionaryController

Available on crate feature NSDictionaryController only.
Source§

impl NSEditor for NSObjectController

Available on crate feature NSObjectController only.
Source§

impl NSEditor for NSPageController

Available on crate feature NSPageController only.
Source§

impl NSEditor for NSSplitViewController

Available on crate feature NSSplitViewController only.
Source§

impl NSEditor for NSTabViewController

Available on crate feature NSTabViewController only.
Source§

impl NSEditor for NSTitlebarAccessoryViewController

Available on crate feature NSTitlebarAccessoryViewController only.
Source§

impl NSEditor for NSTreeController

Available on crate feature NSTreeController only.
Source§

impl NSEditor for NSUserDefaultsController

Available on crate feature NSUserDefaultsController only.
Source§

impl NSEditor for NSViewController

Available on crate feature NSViewController only.