NSObjectNSScriptKeyValueCoding

Trait NSObjectNSScriptKeyValueCoding 

Source
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§

Source

fn valueAtIndex_inPropertyWithKey( &self, index: NSUInteger, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source

fn valueWithName_inPropertyWithKey( &self, name: &NSString, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
Source

unsafe fn valueWithUniqueID_inPropertyWithKey( &self, unique_id: &AnyObject, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature NSString only.
§Safety

unique_id should be of the correct type.

Source

unsafe fn insertValue_atIndex_inPropertyWithKey( &self, value: &AnyObject, index: NSUInteger, key: &NSString, )

Available on crate feature NSString only.
§Safety

value should be of the correct type.

Source

fn removeValueAtIndex_fromPropertyWithKey( &self, index: NSUInteger, key: &NSString, )

Available on crate feature NSString only.
Source

unsafe fn replaceValueAtIndex_inPropertyWithKey_withValue( &self, index: NSUInteger, key: &NSString, value: &AnyObject, )

Available on crate feature NSString only.
§Safety

value should be of the correct type.

Source

unsafe fn insertValue_inPropertyWithKey( &self, value: &AnyObject, key: &NSString, )

Available on crate feature NSString only.
§Safety

value should be of the correct type.

Source

unsafe fn coerceValue_forKey( &self, value: Option<&AnyObject>, key: &NSString, ) -> Option<Retained<AnyObject>>

Available on crate feature 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.

Implementors§