Trait NSObjectNSKeyValueObserverRegistration

Source
pub unsafe trait NSObjectNSKeyValueObserverRegistration:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn addObserver_forKeyPath_options_context(
        &self,
        observer: &NSObject,
        key_path: &NSString,
        options: NSKeyValueObservingOptions,
        context: *mut c_void,
    ) { ... }
    unsafe fn removeObserver_forKeyPath_context(
        &self,
        observer: &NSObject,
        key_path: &NSString,
        context: *mut c_void,
    ) { ... }
    unsafe fn removeObserver_forKeyPath(
        &self,
        observer: &NSObject,
        key_path: &NSString,
    ) { ... }
}
Available on crate feature NSKeyValueObserving only.
Expand description

Category “NSKeyValueObserverRegistration” on NSObject.

Provided Methods§

Source

unsafe fn addObserver_forKeyPath_options_context( &self, observer: &NSObject, key_path: &NSString, options: NSKeyValueObservingOptions, context: *mut c_void, )

Available on crate feature NSString only.
Source

unsafe fn removeObserver_forKeyPath_context( &self, observer: &NSObject, key_path: &NSString, context: *mut c_void, )

Available on crate feature NSString only.
Source

unsafe fn removeObserver_forKeyPath( &self, observer: &NSObject, key_path: &NSString, )

Available on crate feature NSString only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§