pub unsafe trait NSObjectNSScriptKeyValueCoding:
ClassType
+ Sized
+ Sealed {
// Provided methods
fn valueAtIndex_inPropertyWithKey(
&self,
index: NSUInteger,
key: &NSString,
) -> Option<Retained<AnyObject>> { ... }
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,
) { ... }
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§
fn valueAtIndex_inPropertyWithKey( &self, index: NSUInteger, key: &NSString, ) -> Option<Retained<AnyObject>>
Available on crate feature
NSString only.fn valueWithName_inPropertyWithKey( &self, name: &NSString, key: &NSString, ) -> Option<Retained<AnyObject>>
Available on crate feature
NSString only.Sourceunsafe fn valueWithUniqueID_inPropertyWithKey(
&self,
unique_id: &AnyObject,
key: &NSString,
) -> Option<Retained<AnyObject>>
Available on crate feature NSString only.
unsafe fn valueWithUniqueID_inPropertyWithKey( &self, unique_id: &AnyObject, key: &NSString, ) -> Option<Retained<AnyObject>>
NSString only.§Safety
unique_id should be of the correct type.
Sourceunsafe fn insertValue_atIndex_inPropertyWithKey(
&self,
value: &AnyObject,
index: NSUInteger,
key: &NSString,
)
Available on crate feature NSString only.
unsafe fn insertValue_atIndex_inPropertyWithKey( &self, value: &AnyObject, index: NSUInteger, key: &NSString, )
NSString only.§Safety
value should be of the correct type.
fn removeValueAtIndex_fromPropertyWithKey( &self, index: NSUInteger, key: &NSString, )
Available on crate feature
NSString only.Sourceunsafe fn replaceValueAtIndex_inPropertyWithKey_withValue(
&self,
index: NSUInteger,
key: &NSString,
value: &AnyObject,
)
Available on crate feature NSString only.
unsafe fn replaceValueAtIndex_inPropertyWithKey_withValue( &self, index: NSUInteger, key: &NSString, value: &AnyObject, )
NSString only.§Safety
value should be of the correct type.
Sourceunsafe fn insertValue_inPropertyWithKey(
&self,
value: &AnyObject,
key: &NSString,
)
Available on crate feature NSString only.
unsafe fn insertValue_inPropertyWithKey( &self, value: &AnyObject, key: &NSString, )
NSString only.§Safety
value 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.