Trait NSObjectNSKeyValueObserverNotification

Source
pub unsafe trait NSObjectNSKeyValueObserverNotification:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn willChangeValueForKey(&self, key: &NSString) { ... }
    unsafe fn didChangeValueForKey(&self, key: &NSString) { ... }
    unsafe fn willChange_valuesAtIndexes_forKey(
        &self,
        change_kind: NSKeyValueChange,
        indexes: &NSIndexSet,
        key: &NSString,
    ) { ... }
    unsafe fn didChange_valuesAtIndexes_forKey(
        &self,
        change_kind: NSKeyValueChange,
        indexes: &NSIndexSet,
        key: &NSString,
    ) { ... }
    unsafe fn willChangeValueForKey_withSetMutation_usingObjects(
        &self,
        key: &NSString,
        mutation_kind: NSKeyValueSetMutationKind,
        objects: &NSSet,
    ) { ... }
    unsafe fn didChangeValueForKey_withSetMutation_usingObjects(
        &self,
        key: &NSString,
        mutation_kind: NSKeyValueSetMutationKind,
        objects: &NSSet,
    ) { ... }
}
Available on crate feature NSKeyValueObserving only.
Expand description

Category “NSKeyValueObserverNotification” on NSObject.

Provided Methods§

Source

unsafe fn willChangeValueForKey(&self, key: &NSString)

Available on crate feature NSString only.
Source

unsafe fn didChangeValueForKey(&self, key: &NSString)

Available on crate feature NSString only.
Source

unsafe fn willChange_valuesAtIndexes_forKey( &self, change_kind: NSKeyValueChange, indexes: &NSIndexSet, key: &NSString, )

Available on crate features NSIndexSet and NSString only.
Source

unsafe fn didChange_valuesAtIndexes_forKey( &self, change_kind: NSKeyValueChange, indexes: &NSIndexSet, key: &NSString, )

Available on crate features NSIndexSet and NSString only.
Source

unsafe fn willChangeValueForKey_withSetMutation_usingObjects( &self, key: &NSString, mutation_kind: NSKeyValueSetMutationKind, objects: &NSSet, )

Available on crate features NSSet and NSString only.
Source

unsafe fn didChangeValueForKey_withSetMutation_usingObjects( &self, key: &NSString, mutation_kind: NSKeyValueSetMutationKind, objects: &NSSet, )

Available on crate features NSSet and 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§