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§
unsafe fn accessInstanceVariablesDirectly() -> bool
unsafe fn valueForKey(&self, key: &NSString) -> Option<Retained<AnyObject>>
Available on crate feature
NSString
only.unsafe fn setValue_forKey(&self, value: Option<&AnyObject>, key: &NSString)
Available on crate feature
NSString
only.unsafe fn validateValue_forKey_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key: &NSString ) -> Result<(), Retained<NSError>>
Available on crate features
NSError
and NSString
only.unsafe fn mutableArrayValueForKey( &self, key: &NSString ) -> Retained<NSMutableArray>
Available on crate features
NSArray
and NSString
only.unsafe fn mutableOrderedSetValueForKey( &self, key: &NSString ) -> Retained<NSMutableOrderedSet>
Available on crate features
NSOrderedSet
and NSString
only.unsafe fn mutableSetValueForKey(&self, key: &NSString) -> Retained<NSMutableSet>
Available on crate features
NSSet
and NSString
only.unsafe fn valueForKeyPath( &self, key_path: &NSString ) -> Option<Retained<AnyObject>>
Available on crate feature
NSString
only.unsafe fn setValue_forKeyPath( &self, value: Option<&AnyObject>, key_path: &NSString )
Available on crate feature
NSString
only.unsafe fn validateValue_forKeyPath_error( &self, io_value: &mut Option<Retained<AnyObject>>, in_key_path: &NSString ) -> Result<(), Retained<NSError>>
Available on crate features
NSError
and NSString
only.unsafe fn mutableArrayValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableArray>
Available on crate features
NSArray
and NSString
only.unsafe fn mutableOrderedSetValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableOrderedSet>
Available on crate features
NSOrderedSet
and NSString
only.unsafe fn mutableSetValueForKeyPath( &self, key_path: &NSString ) -> Retained<NSMutableSet>
Available on crate features
NSSet
and NSString
only.unsafe fn valueForUndefinedKey( &self, key: &NSString ) -> Option<Retained<AnyObject>>
Available on crate feature
NSString
only.unsafe fn setValue_forUndefinedKey( &self, value: Option<&AnyObject>, key: &NSString )
Available on crate feature
NSString
only.unsafe fn setNilValueForKey(&self, key: &NSString)
Available on crate feature
NSString
only.unsafe fn dictionaryWithValuesForKeys( &self, keys: &NSArray<NSString> ) -> Retained<NSDictionary<NSString, AnyObject>>
Available on crate features
NSArray
and NSDictionary
and NSString
only.unsafe fn setValuesForKeysWithDictionary( &self, keyed_values: &NSDictionary<NSString, AnyObject> )
Available on crate features
NSDictionary
and NSString
only.Object Safety§
This trait is not object safe.