1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

extern_category!(
    /// Category "NSScripting" on [`NSObject`].
    #[doc(alias = "NSScripting")]
    pub unsafe trait NSObjectNSScripting {
        #[cfg(feature = "NSScriptObjectSpecifiers")]
        #[method_id(@__retain_semantics Other scriptingValueForSpecifier:)]
        unsafe fn scriptingValueForSpecifier(
            &self,
            object_specifier: &NSScriptObjectSpecifier,
        ) -> Option<Retained<AnyObject>>;

        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
        #[method_id(@__retain_semantics Other scriptingProperties)]
        unsafe fn scriptingProperties(&self)
            -> Option<Retained<NSDictionary<NSString, AnyObject>>>;

        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
        #[method(setScriptingProperties:)]
        unsafe fn setScriptingProperties(
            &self,
            scripting_properties: Option<&NSDictionary<NSString, AnyObject>>,
        );

        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
        #[method_id(@__retain_semantics CopyOrMutCopy copyScriptingValue:forKey:withProperties:)]
        unsafe fn copyScriptingValue_forKey_withProperties(
            &self,
            value: &AnyObject,
            key: &NSString,
            properties: &NSDictionary<NSString, AnyObject>,
        ) -> Option<Retained<AnyObject>>;

        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
        #[method_id(@__retain_semantics New newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:)]
        unsafe fn newScriptingObjectOfClass_forValueForKey_withContentsValue_properties(
            &self,
            object_class: &AnyClass,
            key: &NSString,
            contents_value: Option<&AnyObject>,
            properties: &NSDictionary<NSString, AnyObject>,
        ) -> Option<Retained<AnyObject>>;
    }

    unsafe impl NSObjectNSScripting for NSObject {}
);