NSApplication

Trait NSApplication 

Source
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ยง

Source

unsafe fn mainMenu(self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setActivationPolicy_( self, policy: NSApplicationActivationPolicy, ) -> BOOL

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setPresentationOptions_( self, options: NSApplicationPresentationOptions, ) -> BOOL

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn presentationOptions_(self) -> NSApplicationPresentationOptions

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setMainMenu_(self, menu: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setServicesMenu_(self, menu: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setWindowsMenu_(self, menu: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn activateIgnoringOtherApps_(self, ignore: BOOL)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn run(self)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn finishLaunching(self)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

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
Source

unsafe fn sendEvent_(self, an_event: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn postEvent_atStart_(self, anEvent: id, flag: BOOL)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn stop_(self, sender: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setApplicationIconImage_(self, image: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn requestUserAttention_(self, requestType: NSRequestUserAttentionType)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

Provided Methodsยง

Source

unsafe fn sharedApplication(_: Self) -> id

๐Ÿ‘Ž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.

Implementorsยง