NSObjectNSKeyValueObservingCustomization

Trait NSObjectNSKeyValueObservingCustomization 

Source
pub unsafe trait NSObjectNSKeyValueObservingCustomization:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    fn keyPathsForValuesAffectingValueForKey(
        key: &NSString,
    ) -> Retained<NSSet<NSString>> { ... }
    fn automaticallyNotifiesObserversForKey(key: &NSString) -> bool { ... }
    fn observationInfo(&self) -> *mut c_void { ... }
    unsafe fn setObservationInfo(&self, observation_info: *mut c_void) { ... }
}
Available on crate feature NSKeyValueObserving only.
Expand description

Category “NSKeyValueObservingCustomization” on NSObject.

Provided Methods§

Source

fn keyPathsForValuesAffectingValueForKey( key: &NSString, ) -> Retained<NSSet<NSString>>

Available on crate features NSSet and NSString only.
Source

fn automaticallyNotifiesObserversForKey(key: &NSString) -> bool

Available on crate feature NSString only.
Source

fn observationInfo(&self) -> *mut c_void

Source

unsafe fn setObservationInfo(&self, observation_info: *mut c_void)

Setter for observationInfo.

§Safety

observation_info must be a valid pointer or null.

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§