icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSScriptSuiteRegistry;

    unsafe impl ClassType for NSScriptSuiteRegistry {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSScriptSuiteRegistry {
        #[method_id(@__retain_semantics Other sharedScriptSuiteRegistry)]
        pub unsafe fn sharedScriptSuiteRegistry() -> Id<NSScriptSuiteRegistry, Shared>;

        #[method(setSharedScriptSuiteRegistry:)]
        pub unsafe fn setSharedScriptSuiteRegistry(registry: &NSScriptSuiteRegistry);

        #[method(loadSuitesFromBundle:)]
        pub unsafe fn loadSuitesFromBundle(&self, bundle: &NSBundle);

        #[method(loadSuiteWithDictionary:fromBundle:)]
        pub unsafe fn loadSuiteWithDictionary_fromBundle(
            &self,
            suiteDeclaration: &NSDictionary,
            bundle: &NSBundle,
        );

        #[method(registerClassDescription:)]
        pub unsafe fn registerClassDescription(&self, classDescription: &NSScriptClassDescription);

        #[method(registerCommandDescription:)]
        pub unsafe fn registerCommandDescription(
            &self,
            commandDescription: &NSScriptCommandDescription,
        );

        #[method_id(@__retain_semantics Other suiteNames)]
        pub unsafe fn suiteNames(&self) -> Id<NSArray<NSString>, Shared>;

        #[method(appleEventCodeForSuite:)]
        pub unsafe fn appleEventCodeForSuite(&self, suiteName: &NSString) -> FourCharCode;

        #[method_id(@__retain_semantics Other bundleForSuite:)]
        pub unsafe fn bundleForSuite(&self, suiteName: &NSString) -> Option<Id<NSBundle, Shared>>;

        #[method_id(@__retain_semantics Other classDescriptionsInSuite:)]
        pub unsafe fn classDescriptionsInSuite(
            &self,
            suiteName: &NSString,
        ) -> Option<Id<NSDictionary<NSString, NSScriptClassDescription>, Shared>>;

        #[method_id(@__retain_semantics Other commandDescriptionsInSuite:)]
        pub unsafe fn commandDescriptionsInSuite(
            &self,
            suiteName: &NSString,
        ) -> Option<Id<NSDictionary<NSString, NSScriptCommandDescription>, Shared>>;

        #[method_id(@__retain_semantics Other suiteForAppleEventCode:)]
        pub unsafe fn suiteForAppleEventCode(
            &self,
            appleEventCode: FourCharCode,
        ) -> Option<Id<NSString, Shared>>;

        #[method_id(@__retain_semantics Other classDescriptionWithAppleEventCode:)]
        pub unsafe fn classDescriptionWithAppleEventCode(
            &self,
            appleEventCode: FourCharCode,
        ) -> Option<Id<NSScriptClassDescription, Shared>>;

        #[method_id(@__retain_semantics Other commandDescriptionWithAppleEventClass:andAppleEventCode:)]
        pub unsafe fn commandDescriptionWithAppleEventClass_andAppleEventCode(
            &self,
            appleEventClassCode: FourCharCode,
            appleEventIDCode: FourCharCode,
        ) -> Option<Id<NSScriptCommandDescription, Shared>>;

        #[method_id(@__retain_semantics Other aeteResource:)]
        pub unsafe fn aeteResource(&self, languageName: &NSString) -> Option<Id<NSData, Shared>>;
    }
);