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§
fn scriptingValueForSpecifier( &self, object_specifier: &NSScriptObjectSpecifier, ) -> Option<Retained<AnyObject>>
Available on crate feature
NSScriptObjectSpecifiers
only.fn scriptingProperties( &self, ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>
Available on crate features
NSDictionary
and NSString
only.Sourceunsafe fn setScriptingProperties(
&self,
scripting_properties: Option<&NSDictionary<NSString, AnyObject>>,
)
Available on crate features NSDictionary
and NSString
only.
unsafe fn setScriptingProperties( &self, scripting_properties: Option<&NSDictionary<NSString, AnyObject>>, )
NSDictionary
and NSString
only.Setter for scriptingProperties
.
This is copied when set.
§Safety
scripting_properties
generic should be of the correct type.
Sourceunsafe fn copyScriptingValue_forKey_withProperties(
&self,
value: &AnyObject,
key: &NSString,
properties: &NSDictionary<NSString, AnyObject>,
) -> Option<Retained<AnyObject>>
Available on crate features NSDictionary
and NSString
only.
unsafe fn copyScriptingValue_forKey_withProperties( &self, value: &AnyObject, key: &NSString, properties: &NSDictionary<NSString, AnyObject>, ) -> Option<Retained<AnyObject>>
NSDictionary
and NSString
only.§Safety
value
should be of the correct type.properties
generic should be of the correct type.
Sourceunsafe 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.
unsafe fn newScriptingObjectOfClass_forValueForKey_withContentsValue_properties( &self, object_class: &AnyClass, key: &NSString, contents_value: Option<&AnyObject>, properties: &NSDictionary<NSString, AnyObject>, ) -> Option<Retained<AnyObject>>
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", so this trait is not object safe.