//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_methods!(
    /// NSScripting
    #[cfg(feature = "NSDocument")]
    unsafe impl NSDocument {
        #[method_id(@__retain_semantics Other lastComponentOfFileName)]
        pub unsafe fn lastComponentOfFileName(&self) -> Retained<NSString>;

        #[method(setLastComponentOfFileName:)]
        pub unsafe fn setLastComponentOfFileName(&self, last_component_of_file_name: &NSString);

        #[method_id(@__retain_semantics Other handleSaveScriptCommand:)]
        pub unsafe fn handleSaveScriptCommand(
            &self,
            command: &NSScriptCommand,
        ) -> Option<Retained<AnyObject>>;

        #[method_id(@__retain_semantics Other handleCloseScriptCommand:)]
        pub unsafe fn handleCloseScriptCommand(
            &self,
            command: &NSCloseCommand,
        ) -> Option<Retained<AnyObject>>;

        #[method_id(@__retain_semantics Other handlePrintScriptCommand:)]
        pub unsafe fn handlePrintScriptCommand(
            &self,
            command: &NSScriptCommand,
        ) -> Option<Retained<AnyObject>>;

        #[method_id(@__retain_semantics Other objectSpecifier)]
        pub unsafe fn objectSpecifier(&self) -> Retained<NSScriptObjectSpecifier>;
    }
);
