use crate::common::*;
use crate::Foundation::*;
ns_enum!(
#[underlying(NSUInteger)]
pub enum NSSaveOptions {
NSSaveOptionsYes = 0,
NSSaveOptionsNo = 1,
NSSaveOptionsAsk = 2,
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSCloneCommand")]
pub struct NSCloneCommand;
#[cfg(feature = "Foundation_NSCloneCommand")]
unsafe impl ClassType for NSCloneCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSCloneCommand")]
unsafe impl NSCoding for NSCloneCommand {}
#[cfg(feature = "Foundation_NSCloneCommand")]
unsafe impl NSObjectProtocol for NSCloneCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSCloneCommand")]
unsafe impl NSCloneCommand {
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method(setReceiversSpecifier:)]
pub unsafe fn setReceiversSpecifier(&self, receivers_ref: Option<&NSScriptObjectSpecifier>);
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method_id(@__retain_semantics Other keySpecifier)]
pub unsafe fn keySpecifier(&self) -> Id<NSScriptObjectSpecifier>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCloneCommand")]
unsafe impl NSCloneCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCloneCommand")]
unsafe impl NSCloneCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSCloseCommand")]
pub struct NSCloseCommand;
#[cfg(feature = "Foundation_NSCloseCommand")]
unsafe impl ClassType for NSCloseCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSCloseCommand")]
unsafe impl NSCoding for NSCloseCommand {}
#[cfg(feature = "Foundation_NSCloseCommand")]
unsafe impl NSObjectProtocol for NSCloseCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSCloseCommand")]
unsafe impl NSCloseCommand {
#[method(saveOptions)]
pub unsafe fn saveOptions(&self) -> NSSaveOptions;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCloseCommand")]
unsafe impl NSCloseCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCloseCommand")]
unsafe impl NSCloseCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSCountCommand")]
pub struct NSCountCommand;
#[cfg(feature = "Foundation_NSCountCommand")]
unsafe impl ClassType for NSCountCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSCountCommand")]
unsafe impl NSCoding for NSCountCommand {}
#[cfg(feature = "Foundation_NSCountCommand")]
unsafe impl NSObjectProtocol for NSCountCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSCountCommand")]
unsafe impl NSCountCommand {}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCountCommand")]
unsafe impl NSCountCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCountCommand")]
unsafe impl NSCountCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSCreateCommand")]
pub struct NSCreateCommand;
#[cfg(feature = "Foundation_NSCreateCommand")]
unsafe impl ClassType for NSCreateCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSCreateCommand")]
unsafe impl NSCoding for NSCreateCommand {}
#[cfg(feature = "Foundation_NSCreateCommand")]
unsafe impl NSObjectProtocol for NSCreateCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSCreateCommand")]
unsafe impl NSCreateCommand {
#[cfg(feature = "Foundation_NSScriptClassDescription")]
#[method_id(@__retain_semantics Other createClassDescription)]
pub unsafe fn createClassDescription(&self) -> Id<NSScriptClassDescription>;
#[cfg(all(feature = "Foundation_NSDictionary", feature = "Foundation_NSString"))]
#[method_id(@__retain_semantics Other resolvedKeyDictionary)]
pub unsafe fn resolvedKeyDictionary(&self) -> Id<NSDictionary<NSString, AnyObject>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCreateCommand")]
unsafe impl NSCreateCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSCreateCommand")]
unsafe impl NSCreateCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSDeleteCommand")]
pub struct NSDeleteCommand;
#[cfg(feature = "Foundation_NSDeleteCommand")]
unsafe impl ClassType for NSDeleteCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSDeleteCommand")]
unsafe impl NSCoding for NSDeleteCommand {}
#[cfg(feature = "Foundation_NSDeleteCommand")]
unsafe impl NSObjectProtocol for NSDeleteCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSDeleteCommand")]
unsafe impl NSDeleteCommand {
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method(setReceiversSpecifier:)]
pub unsafe fn setReceiversSpecifier(&self, receivers_ref: Option<&NSScriptObjectSpecifier>);
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method_id(@__retain_semantics Other keySpecifier)]
pub unsafe fn keySpecifier(&self) -> Id<NSScriptObjectSpecifier>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSDeleteCommand")]
unsafe impl NSDeleteCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSDeleteCommand")]
unsafe impl NSDeleteCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSExistsCommand")]
pub struct NSExistsCommand;
#[cfg(feature = "Foundation_NSExistsCommand")]
unsafe impl ClassType for NSExistsCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSExistsCommand")]
unsafe impl NSCoding for NSExistsCommand {}
#[cfg(feature = "Foundation_NSExistsCommand")]
unsafe impl NSObjectProtocol for NSExistsCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSExistsCommand")]
unsafe impl NSExistsCommand {}
);
extern_methods!(
#[cfg(feature = "Foundation_NSExistsCommand")]
unsafe impl NSExistsCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSExistsCommand")]
unsafe impl NSExistsCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSGetCommand")]
pub struct NSGetCommand;
#[cfg(feature = "Foundation_NSGetCommand")]
unsafe impl ClassType for NSGetCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSGetCommand")]
unsafe impl NSCoding for NSGetCommand {}
#[cfg(feature = "Foundation_NSGetCommand")]
unsafe impl NSObjectProtocol for NSGetCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSGetCommand")]
unsafe impl NSGetCommand {}
);
extern_methods!(
#[cfg(feature = "Foundation_NSGetCommand")]
unsafe impl NSGetCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSGetCommand")]
unsafe impl NSGetCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSMoveCommand")]
pub struct NSMoveCommand;
#[cfg(feature = "Foundation_NSMoveCommand")]
unsafe impl ClassType for NSMoveCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSMoveCommand")]
unsafe impl NSCoding for NSMoveCommand {}
#[cfg(feature = "Foundation_NSMoveCommand")]
unsafe impl NSObjectProtocol for NSMoveCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSMoveCommand")]
unsafe impl NSMoveCommand {
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method(setReceiversSpecifier:)]
pub unsafe fn setReceiversSpecifier(&self, receivers_ref: Option<&NSScriptObjectSpecifier>);
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method_id(@__retain_semantics Other keySpecifier)]
pub unsafe fn keySpecifier(&self) -> Id<NSScriptObjectSpecifier>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSMoveCommand")]
unsafe impl NSMoveCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSMoveCommand")]
unsafe impl NSMoveCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSQuitCommand")]
pub struct NSQuitCommand;
#[cfg(feature = "Foundation_NSQuitCommand")]
unsafe impl ClassType for NSQuitCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSQuitCommand")]
unsafe impl NSCoding for NSQuitCommand {}
#[cfg(feature = "Foundation_NSQuitCommand")]
unsafe impl NSObjectProtocol for NSQuitCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSQuitCommand")]
unsafe impl NSQuitCommand {
#[method(saveOptions)]
pub unsafe fn saveOptions(&self) -> NSSaveOptions;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSQuitCommand")]
unsafe impl NSQuitCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSQuitCommand")]
unsafe impl NSQuitCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Foundation_NSSetCommand")]
pub struct NSSetCommand;
#[cfg(feature = "Foundation_NSSetCommand")]
unsafe impl ClassType for NSSetCommand {
#[inherits(NSObject)]
type Super = NSScriptCommand;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Foundation_NSSetCommand")]
unsafe impl NSCoding for NSSetCommand {}
#[cfg(feature = "Foundation_NSSetCommand")]
unsafe impl NSObjectProtocol for NSSetCommand {}
extern_methods!(
#[cfg(feature = "Foundation_NSSetCommand")]
unsafe impl NSSetCommand {
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method(setReceiversSpecifier:)]
pub unsafe fn setReceiversSpecifier(&self, receivers_ref: Option<&NSScriptObjectSpecifier>);
#[cfg(feature = "Foundation_NSScriptObjectSpecifier")]
#[method_id(@__retain_semantics Other keySpecifier)]
pub unsafe fn keySpecifier(&self) -> Id<NSScriptObjectSpecifier>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSSetCommand")]
unsafe impl NSSetCommand {
#[cfg(feature = "Foundation_NSScriptCommandDescription")]
#[method_id(@__retain_semantics Init initWithCommandDescription:)]
pub unsafe fn initWithCommandDescription(
this: Allocated<Self>,
command_def: &NSScriptCommandDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSCoder")]
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, in_coder: &NSCoder) -> Option<Id<Self>>;
}
);
extern_methods!(
#[cfg(feature = "Foundation_NSSetCommand")]
unsafe impl NSSetCommand {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);