use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[cfg(feature = "NSDocument")]
impl NSDocument {
extern_methods!(
#[unsafe(method(lastComponentOfFileName))]
#[unsafe(method_family = none)]
pub fn lastComponentOfFileName(&self) -> Retained<NSString>;
#[unsafe(method(setLastComponentOfFileName:))]
#[unsafe(method_family = none)]
pub fn setLastComponentOfFileName(&self, last_component_of_file_name: &NSString);
#[unsafe(method(handleSaveScriptCommand:))]
#[unsafe(method_family = none)]
pub fn handleSaveScriptCommand(
&self,
command: &NSScriptCommand,
) -> Option<Retained<AnyObject>>;
#[unsafe(method(handleCloseScriptCommand:))]
#[unsafe(method_family = none)]
pub fn handleCloseScriptCommand(
&self,
command: &NSCloseCommand,
) -> Option<Retained<AnyObject>>;
#[unsafe(method(handlePrintScriptCommand:))]
#[unsafe(method_family = none)]
pub fn handlePrintScriptCommand(
&self,
command: &NSScriptCommand,
) -> Option<Retained<AnyObject>>;
#[unsafe(method(objectSpecifier))]
#[unsafe(method_family = none)]
pub fn objectSpecifier(&self) -> Retained<NSScriptObjectSpecifier>;
);
}