pub unsafe trait NSObjectNSScriptKeyValueCoding:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn valueAtIndex_inPropertyWithKey(
&self,
index: NSUInteger,
key: &NSString,
) -> Option<Retained<AnyObject>> { ... }
unsafe fn valueWithName_inPropertyWithKey(
&self,
name: &NSString,
key: &NSString,
) -> Option<Retained<AnyObject>> { ... }
unsafe fn valueWithUniqueID_inPropertyWithKey(
&self,
unique_id: &AnyObject,
key: &NSString,
) -> Option<Retained<AnyObject>> { ... }
unsafe fn insertValue_atIndex_inPropertyWithKey(
&self,
value: &AnyObject,
index: NSUInteger,
key: &NSString,
) { ... }
unsafe fn removeValueAtIndex_fromPropertyWithKey(
&self,
index: NSUInteger,
key: &NSString,
) { ... }
unsafe fn replaceValueAtIndex_inPropertyWithKey_withValue(
&self,
index: NSUInteger,
key: &NSString,
value: &AnyObject,
) { ... }
unsafe fn insertValue_inPropertyWithKey(
&self,
value: &AnyObject,
key: &NSString,
) { ... }
unsafe fn coerceValue_forKey(
&self,
value: Option<&AnyObject>,
key: &NSString,
) -> Option<Retained<AnyObject>> { ... }
}
Available on crate feature
NSScriptKeyValueCoding
only.Expand description
Category “NSScriptKeyValueCoding” on NSObject
.
Provided Methods§
unsafe fn valueAtIndex_inPropertyWithKey( &self, index: NSUInteger, key: &NSString, ) -> Option<Retained<AnyObject>>
Available on crate feature
NSString
only.unsafe fn valueWithName_inPropertyWithKey( &self, name: &NSString, key: &NSString, ) -> Option<Retained<AnyObject>>
Available on crate feature
NSString
only.unsafe fn valueWithUniqueID_inPropertyWithKey( &self, unique_id: &AnyObject, key: &NSString, ) -> Option<Retained<AnyObject>>
Available on crate feature
NSString
only.unsafe fn insertValue_atIndex_inPropertyWithKey( &self, value: &AnyObject, index: NSUInteger, key: &NSString, )
Available on crate feature
NSString
only.unsafe fn removeValueAtIndex_fromPropertyWithKey( &self, index: NSUInteger, key: &NSString, )
Available on crate feature
NSString
only.unsafe fn replaceValueAtIndex_inPropertyWithKey_withValue( &self, index: NSUInteger, key: &NSString, value: &AnyObject, )
Available on crate feature
NSString
only.unsafe fn insertValue_inPropertyWithKey( &self, value: &AnyObject, key: &NSString, )
Available on crate feature
NSString
only.unsafe fn coerceValue_forKey( &self, value: Option<&AnyObject>, key: &NSString, ) -> Option<Retained<AnyObject>>
Available on crate feature
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.