pub unsafe trait NSObjectNSKeyValueObserverRegistration: ClassType {
// Provided methods
unsafe fn addObserver_forKeyPath_options_context(
&self,
observer: &NSObject,
key_path: &NSString,
options: NSKeyValueObservingOptions,
context: *mut c_void
)
where Self: Sized + Message { ... }
unsafe fn removeObserver_forKeyPath_context(
&self,
observer: &NSObject,
key_path: &NSString,
context: *mut c_void
)
where Self: Sized + Message { ... }
unsafe fn removeObserver_forKeyPath(
&self,
observer: &NSObject,
key_path: &NSString
)
where Self: Sized + Message { ... }
}
Available on crate feature
NSKeyValueObserving
only.Expand description
Category “NSKeyValueObserverRegistration” on NSObject
.
Provided Methods§
unsafe fn addObserver_forKeyPath_options_context( &self, observer: &NSObject, key_path: &NSString, options: NSKeyValueObservingOptions, context: *mut c_void )
Available on crate feature
NSString
only.unsafe fn removeObserver_forKeyPath_context( &self, observer: &NSObject, key_path: &NSString, context: *mut c_void )
Available on crate feature
NSString
only.unsafe fn removeObserver_forKeyPath( &self, observer: &NSObject, key_path: &NSString )
Available on crate feature
NSString
only.Object Safety§
This trait is not object safe.