NSApplication Class Reference
PDF
Class at a Glance
Overview
The Delegate and Notifications
System Services
Subclassing Notes
Methods to Override
Special Considerations
Alternatives to Subclassing
Tasks
Getting the Application
Configuring Applications
Launching Applications
Terminating Applications
Managing Active Status
Hiding Applications
Managing the Event Loop
Handling Events
Posting Events
Managing Sheets
Managing Windows
Minimizing Windows
Hiding Windows
Updating Windows
Managing Window Layers
Accessing the Main Menu
Managing the Window Menu
Managing the Dock Menu
Accessing the Dock Tile
Managing the Services Menu
Providing Services
Managing Panels
Displaying Help
Displaying Errors
Managing Threads
Posting Actions
Drawing Windows
Logging Exceptions
Scripting
Managing User Attention Requests
Managing the Screen
Opening Files
Printing
Deprecated
Class Methods
detachDrawingThread:toTarget:withObject:
sharedApplication
Instance Methods
abortModal
activateContextHelpMode:
activateIgnoringOtherApps:
addWindowsItem:title:filename:
applicationIconImage
arrangeInFront:
beginModalSessionForWindow:
beginModalSessionForWindow:relativeToWindow:
beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:
cancelUserAttentionRequest:
changeWindowsItem:title:filename:
context
currentEvent
deactivate
delegate
discardEventsMatchingMask:beforeEvent:
dockTile
endModalSession:
endSheet:
endSheet:returnCode:
finishLaunching
hide:
hideOtherApplications:
isActive
isHidden
isRunning
keyWindow
mainMenu
mainWindow
makeWindowsPerform:inOrder:
miniaturizeAll:
modalWindow
nextEventMatchingMask:untilDate:inMode:dequeue:
orderedDocuments
orderedWindows
orderFrontCharacterPalette:
orderFrontColorPanel:
orderFrontStandardAboutPanel:
orderFrontStandardAboutPanelWithOptions:
postEvent:atStart:
preventWindowOrdering
registerServicesMenuSendTypes:returnTypes:
removeWindowsItem:
replyToApplicationShouldTerminate:
replyToOpenOrPrint:
reportException:
requestUserAttention:
run
runModalForWindow:
runModalForWindow:relativeToWindow:
runModalSession:
runPageLayout:
sendAction:to:from:
sendEvent:
servicesMenu
servicesProvider
setApplicationIconImage:
setDelegate:
setMainMenu:
setServicesMenu:
setServicesProvider:
setWindowsMenu:
setWindowsNeedUpdate:
showHelp:
stop:
stopModal
stopModalWithCode:
targetForAction:
targetForAction:to:from:
terminate:
tryToPerform:with:
unhide:
unhideAllApplications:
unhideWithoutActivation
updateWindows
updateWindowsItem:
validRequestorForSendType:returnType:
windows
windowsMenu
windowWithWindowNumber:
Delegate Methods
application:delegateHandlesKey:
application:openFile:
application:openFiles:
application:openFileWithoutUI:
application:openTempFile:
application:printFile:
application:printFiles:withSettings:showPrintPanels:
application:willPresentError:
applicationDidBecomeActive:
applicationDidChangeScreenParameters:
applicationDidFinishLaunching:
applicationDidHide:
applicationDidResignActive:
applicationDidUnhide:
applicationDidUpdate:
applicationDockMenu:
applicationOpenUntitledFile:
applicationShouldHandleReopen:hasVisibleWindows:
applicationShouldOpenUntitledFile:
applicationShouldTerminate:
applicationShouldTerminateAfterLastWindowClosed:
applicationWillBecomeActive:
applicationWillFinishLaunching:
applicationWillHide:
applicationWillResignActive:
applicationWillTerminate:
applicationWillUnhide:
applicationWillUpdate:
Constants
Return values for modal operations
NSUpdateWindowsRunLoopOrdering
NSApp
NSRequestUserAttentionType
NSApplicationDelegateReply
NSApplicationTerminateReply
NSApplicationPrintReply
Run loop modes
NSAppKitVersionNumber
Application Kit framework version numbers
Notifications
NSApplicationDidBecomeActiveNotification
NSApplicationDidChangeScreenParametersNotification
NSApplicationDidFinishLaunchingNotification
NSApplicationDidHideNotification
NSApplicationDidResignActiveNotification
NSApplicationDidUnhideNotification
NSApplicationDidUpdateNotification
NSApplicationWillBecomeActiveNotification
NSApplicationWillFinishLaunchingNotification
NSApplicationWillHideNotification
NSApplicationWillResignActiveNotification
NSApplicationWillTerminateNotification
NSApplicationWillUnhideNotification
NSApplicationWillUpdateNotification
Appendix A: Deprecated NSApplication Methods
Deprecated in Mac OS X v10.4
application:printFiles:
Revision History
Index
Companion Guides
Application Architecture Overview
Notification Programming Topics for Cocoa
Sheet Programming Topics for Cocoa
System Services