Trait objc2_foundation::NSObjectNSKeyValueCoding

source ·
pub unsafe trait NSObjectNSKeyValueCoding: ClassType {
Show 18 methods // Provided methods unsafe fn accessInstanceVariablesDirectly() -> bool where Self: Sized + ClassType { ... } unsafe fn valueForKey(&self, key: &NSString) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } unsafe fn setValue_forKey(&self, value: Option<&AnyObject>, key: &NSString) where Self: Sized + Message { ... } unsafe fn validateValue_forKey_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key: &NSString ) -> Result<(), Retained<NSError>> where Self: Sized + Message { ... } unsafe fn mutableArrayValueForKey( &self, key: &NSString ) -> Retained<NSMutableArray> where Self: Sized + Message { ... } unsafe fn mutableOrderedSetValueForKey( &self, key: &NSString ) -> Retained<NSMutableOrderedSet> where Self: Sized + Message { ... } unsafe fn mutableSetValueForKey( &self, key: &NSString ) -> Retained<NSMutableSet> where Self: Sized + Message { ... } unsafe fn valueForKeyPath( &self, key_path: &NSString ) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } unsafe fn setValue_forKeyPath( &self, value: Option<&AnyObject>, key_path: &NSString ) where Self: Sized + Message { ... } unsafe fn validateValue_forKeyPath_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key_path: &NSString ) -> Result<(), Retained<NSError>> where Self: Sized + Message { ... } unsafe fn mutableArrayValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableArray> where Self: Sized + Message { ... } unsafe fn mutableOrderedSetValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableOrderedSet> where Self: Sized + Message { ... } unsafe fn mutableSetValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableSet> where Self: Sized + Message { ... } unsafe fn valueForUndefinedKey( &self, key: &NSString ) -> Option<Retained<AnyObject>> where Self: Sized + Message { ... } unsafe fn setValue_forUndefinedKey( &self, value: Option<&AnyObject>, key: &NSString ) where Self: Sized + Message { ... } unsafe fn setNilValueForKey(&self, key: &NSString) where Self: Sized + Message { ... } unsafe fn dictionaryWithValuesForKeys( &self, keys: &NSArray<NSString> ) -> Retained<NSDictionary<NSString, AnyObject>> where Self: Sized + Message { ... } unsafe fn setValuesForKeysWithDictionary( &self, keyed_values: &NSDictionary<NSString, AnyObject> ) where Self: Sized + Message { ... }
}
Available on crate feature NSKeyValueCoding only.
Expand description

Category “NSKeyValueCoding” on NSObject.

Provided Methods§

source

unsafe fn accessInstanceVariablesDirectly() -> bool
where Self: Sized + ClassType,

source

unsafe fn valueForKey(&self, key: &NSString) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn setValue_forKey(&self, value: Option<&AnyObject>, key: &NSString)
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn validateValue_forKey_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key: &NSString ) -> Result<(), Retained<NSError>>
where Self: Sized + Message,

Available on crate features NSError and NSString only.
source

unsafe fn mutableArrayValueForKey( &self, key: &NSString ) -> Retained<NSMutableArray>
where Self: Sized + Message,

Available on crate features NSArray and NSString only.
source

unsafe fn mutableOrderedSetValueForKey( &self, key: &NSString ) -> Retained<NSMutableOrderedSet>
where Self: Sized + Message,

Available on crate features NSOrderedSet and NSString only.
source

unsafe fn mutableSetValueForKey(&self, key: &NSString) -> Retained<NSMutableSet>
where Self: Sized + Message,

Available on crate features NSSet and NSString only.
source

unsafe fn valueForKeyPath( &self, key_path: &NSString ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn setValue_forKeyPath( &self, value: Option<&AnyObject>, key_path: &NSString )
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn validateValue_forKeyPath_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key_path: &NSString ) -> Result<(), Retained<NSError>>
where Self: Sized + Message,

Available on crate features NSError and NSString only.
source

unsafe fn mutableArrayValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableArray>
where Self: Sized + Message,

Available on crate features NSArray and NSString only.
source

unsafe fn mutableOrderedSetValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableOrderedSet>
where Self: Sized + Message,

Available on crate features NSOrderedSet and NSString only.
source

unsafe fn mutableSetValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableSet>
where Self: Sized + Message,

Available on crate features NSSet and NSString only.
source

unsafe fn valueForUndefinedKey( &self, key: &NSString ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn setValue_forUndefinedKey( &self, value: Option<&AnyObject>, key: &NSString )
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn setNilValueForKey(&self, key: &NSString)
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn dictionaryWithValuesForKeys( &self, keys: &NSArray<NSString> ) -> Retained<NSDictionary<NSString, AnyObject>>
where Self: Sized + Message,

Available on crate features NSArray and NSDictionary and NSString only.
source

unsafe fn setValuesForKeysWithDictionary( &self, keyed_values: &NSDictionary<NSString, AnyObject> )
where Self: Sized + Message,

Available on crate features NSDictionary and NSString only.

Object Safety§

This trait is not object safe.

Implementors§