Skip to main content

NSObjectNSScripting

Trait NSObjectNSScripting 

Source
pub unsafe trait NSObjectNSScripting:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    fn scriptingValueForSpecifier(
        &self,
        object_specifier: &NSScriptObjectSpecifier,
    ) -> Option<Retained<AnyObject>> { ... }
    fn scriptingProperties(
        &self,
    ) -> Option<Retained<NSDictionary<NSString, AnyObject>>> { ... }
    unsafe fn setScriptingProperties(
        &self,
        scripting_properties: Option<&NSDictionary<NSString, AnyObject>>,
    ) { ... }
    unsafe fn copyScriptingValue_forKey_withProperties(
        &self,
        value: &AnyObject,
        key: &NSString,
        properties: &NSDictionary<NSString, AnyObject>,
    ) -> Option<Retained<AnyObject>> { ... }
    unsafe fn newScriptingObjectOfClass_forValueForKey_withContentsValue_properties(
        &self,
        object_class: &AnyClass,
        key: &NSString,
        contents_value: Option<&AnyObject>,
        properties: &NSDictionary<NSString, AnyObject>,
    ) -> Option<Retained<AnyObject>> { ... }
}
Available on crate feature NSObjectScripting only.
Expand description

Category “NSScripting” on NSObject.

Provided Methods§

Source

fn scriptingValueForSpecifier( &self, object_specifier: &NSScriptObjectSpecifier, ) -> Option<Retained<AnyObject>>

Available on crate feature NSScriptObjectSpecifiers only.
Source

fn scriptingProperties( &self, ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>

Available on crate features NSDictionary and NSString only.
Source

unsafe fn setScriptingProperties( &self, scripting_properties: Option<&NSDictionary<NSString, AnyObject>>, )

Available on crate features NSDictionary and NSString only.

Setter for scriptingProperties.

This is copied when set.

§Safety

scripting_properties generic should be of the correct type.

Source

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

Available on crate features NSDictionary and NSString only.
§Safety
  • value should be of the correct type.
  • properties generic should be of the correct type.
Source

unsafe fn newScriptingObjectOfClass_forValueForKey_withContentsValue_properties( &self, object_class: &AnyClass, key: &NSString, contents_value: Option<&AnyObject>, properties: &NSDictionary<NSString, AnyObject>, ) -> Option<Retained<AnyObject>>

Available on crate features NSDictionary and NSString only.
§Safety
  • object_class probably has further requirements.
  • contents_value should be of the correct type.
  • properties generic 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".

Implementors§