Name
NSApplication — Mac OS X 10.0
Synopsis
This is one of the three classes that define the overall architecture
of the Application Kit, as well as the general behavior of Cocoa
applications. The other two classes are NSView
and
NSResponder
. Every AppKit-based application has an
instance of NSApplication
that is accessible
through the global variable NSApp
.
|
@interface NSApplication : NSResponder
|
// Accessor Methods
|
- (void)setMainMenu:(NSMenu *)aMenu; |
- (NSMenu *)mainMenu;
|
- (void)setDelegate:(id)anObject; |
- (id)delegate;
|
- (void)setWindowsNeedUpdate:(BOOL)needUpdate; |
- (void)setAppleMenu:(NSMenu *)menu; |
- (void)setApplicationIconImage:(NSImage *)image; |
- (NSImage *)applicationIconImage;
|
- (void)setWindowsMenu:(NSMenu *)aMenu; |
- (NSMenu *)windowsMenu;
|
- (void)setServicesMenu:(NSMenu *)aMenu; |
- (NSMenu *)servicesMenu;
|
- (void)setServicesProvider:(id)provider; |
- (id)servicesProvider;
|
// Class Methods
|
+ (void)detachDrawingThread:(SEL)selector toTarget:(id)target withObject:(id)argument; |
+ (NSApplication *)sharedApplication;
|
// Instance Methods
|
- (NSModalSession)beginModalSessionForWindow:(NSWindow *)theWindow; |
- (void)activateContextHelpMode:(id)sender; |
- (void)abortModal;
|
- (void)activateIgnoringOtherApps:(BOOL)flag; |
- (void)addWindowsItem:(NSWindow *)win title:(NSString *)aString filename:(BOOL)isFilename; |
- (void)arrangeInFront ... |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.