pub trait NSApplication: Sized {
Show 17 methods
// Required methods
unsafe fn mainMenu(self) -> id;
unsafe fn setActivationPolicy_(
self,
policy: NSApplicationActivationPolicy,
) -> BOOL;
unsafe fn setPresentationOptions_(
self,
options: NSApplicationPresentationOptions,
) -> BOOL;
unsafe fn presentationOptions_(self) -> NSApplicationPresentationOptions;
unsafe fn setMainMenu_(self, menu: id);
unsafe fn setServicesMenu_(self, menu: id);
unsafe fn setWindowsMenu_(self, menu: id);
unsafe fn activateIgnoringOtherApps_(self, ignore: BOOL);
unsafe fn run(self);
unsafe fn finishLaunching(self);
unsafe fn nextEventMatchingMask_untilDate_inMode_dequeue_(
self,
mask: NSUInteger,
expiration: id,
in_mode: id,
dequeue: BOOL,
) -> id;
unsafe fn sendEvent_(self, an_event: id);
unsafe fn postEvent_atStart_(self, anEvent: id, flag: BOOL);
unsafe fn stop_(self, sender: id);
unsafe fn setApplicationIconImage_(self, image: id);
unsafe fn requestUserAttention_(
self,
requestType: NSRequestUserAttentionType,
);
// Provided method
unsafe fn sharedApplication(_: Self) -> id { ... }
}๐Deprecated: use the objc2-app-kit crate instead
Required Methodsยง
unsafe fn mainMenu(self) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setActivationPolicy_( self, policy: NSApplicationActivationPolicy, ) -> BOOL
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setPresentationOptions_( self, options: NSApplicationPresentationOptions, ) -> BOOL
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn presentationOptions_(self) -> NSApplicationPresentationOptions
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setMainMenu_(self, menu: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setServicesMenu_(self, menu: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setWindowsMenu_(self, menu: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn activateIgnoringOtherApps_(self, ignore: BOOL)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn run(self)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn finishLaunching(self)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn nextEventMatchingMask_untilDate_inMode_dequeue_( self, mask: NSUInteger, expiration: id, in_mode: id, dequeue: BOOL, ) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn sendEvent_(self, an_event: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn postEvent_atStart_(self, anEvent: id, flag: BOOL)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn stop_(self, sender: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setApplicationIconImage_(self, image: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn requestUserAttention_(self, requestType: NSRequestUserAttentionType)
๐Deprecated: use the objc2-app-kit crate instead
Provided Methodsยง
๐Deprecated: use the objc2-app-kit crate instead
Dyn Compatibilityยง
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.