objc2_automator/generated/
AMWorkspace.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/automator/amworkspace?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct AMWorkspace;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for AMWorkspace {}
18);
19
20impl AMWorkspace {
21    extern_methods!(
22        #[unsafe(method(sharedWorkspace))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn sharedWorkspace() -> Option<Retained<AMWorkspace>>;
25
26        /// # Safety
27        ///
28        /// - `path` might not allow `None`.
29        /// - `input` should be of the correct type.
30        /// - `input` might not allow `None`.
31        /// - `error` might not allow `None`.
32        #[unsafe(method(runWorkflowAtPath:withInput:error:))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn runWorkflowAtPath_withInput_error(
35            &self,
36            path: Option<&NSString>,
37            input: Option<&AnyObject>,
38            error: Option<&mut Option<Retained<NSError>>>,
39        ) -> Option<Retained<AnyObject>>;
40    );
41}
42
43/// Methods declared on superclass `NSObject`.
44impl AMWorkspace {
45    extern_methods!(
46        #[unsafe(method(init))]
47        #[unsafe(method_family = init)]
48        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49
50        #[unsafe(method(new))]
51        #[unsafe(method_family = new)]
52        pub unsafe fn new() -> Retained<Self>;
53    );
54}