use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_methods!(
#[cfg(feature = "NSDocument")]
unsafe impl NSDocument {
#[method_id(@__retain_semantics Other lastComponentOfFileName)]
pub unsafe fn lastComponentOfFileName(&self) -> Id<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<Id<AnyObject>>;
#[method_id(@__retain_semantics Other handleCloseScriptCommand:)]
pub unsafe fn handleCloseScriptCommand(
&self,
command: &NSCloseCommand,
) -> Option<Id<AnyObject>>;
#[method_id(@__retain_semantics Other handlePrintScriptCommand:)]
pub unsafe fn handlePrintScriptCommand(
&self,
command: &NSScriptCommand,
) -> Option<Id<AnyObject>>;
#[method_id(@__retain_semantics Other objectSpecifier)]
pub unsafe fn objectSpecifier(&self) -> Id<NSScriptObjectSpecifier>;
}
);