NSObjectNSKeyValueObserverNotification

Trait NSObjectNSKeyValueObserverNotification 

Source
pub unsafe trait NSObjectNSKeyValueObserverNotification:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    fn willChangeValueForKey(&self, key: &NSString) { ... }
    fn didChangeValueForKey(&self, key: &NSString) { ... }
    fn willChange_valuesAtIndexes_forKey(
        &self,
        change_kind: NSKeyValueChange,
        indexes: &NSIndexSet,
        key: &NSString,
    ) { ... }
    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

fn willChangeValueForKey(&self, key: &NSString)

Available on crate feature NSString only.
Source

fn didChangeValueForKey(&self, key: &NSString)

Available on crate feature NSString only.
Source

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

Available on crate features NSIndexSet and NSString only.
Source

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.
§Safety

objects generic should be of the correct type.

Source

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

Available on crate features NSSet and NSString only.
§Safety

objects generic should be of the correct type.

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§