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
User Interface Layout Direction
Hiding Windows
Updating Windows
Managing Window Layers
Accessing the Main Menu
Managing the Window Menu
Accessing the Dock Tile
Managing the Services Menu
Providing Services
Managing Panels
Displaying Help
Managing Threads
Posting Actions
Drawing Windows
Logging Exceptions
Scripting
Managing User Attention Requests
Keyboard Accessibility
Presentation Options
Activation Policy
Deprecated
Spotlight for Help
Class Methods
detachDrawingThread:toTarget:withObject:
sharedApplication
Instance Methods
abortModal
activateContextHelpMode:
activateIgnoringOtherApps:
activationPolicy
addWindowsItem:title:filename:
applicationIconImage
arrangeInFront:
beginModalSessionForWindow:
beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:
cancelUserAttentionRequest:
changeWindowsItem:title:filename:
context
currentEvent
currentSystemPresentationOptions
deactivate
delegate
discardEventsMatchingMask:beforeEvent:
dockTile
endModalSession:
endSheet:
endSheet:returnCode:
finishLaunching
helpMenu
hide:
hideOtherApplications:
isActive
isFullKeyboardAccessEnabled
isHidden
isRunning
keyWindow
mainMenu
mainWindow
makeWindowsPerform:inOrder:
miniaturizeAll:
modalWindow
nextEventMatchingMask:untilDate:inMode:dequeue:
orderedDocuments
orderedWindows
orderFrontCharacterPalette:
orderFrontColorPanel:
orderFrontStandardAboutPanel:
orderFrontStandardAboutPanelWithOptions:
postEvent:atStart:
presentationOptions
preventWindowOrdering
registerServicesMenuSendTypes:returnTypes:
registerUserInterfaceItemSearchHandler:
removeWindowsItem:
replyToApplicationShouldTerminate:
replyToOpenOrPrint:
reportException:
requestUserAttention:
run
runModalForWindow:
runModalSession:
runPageLayout:
searchString:inUserInterfaceItemString:searchRange:foundRange:
sendAction:to:from:
sendEvent:
servicesMenu
servicesProvider
setActivationPolicy:
setApplicationIconImage:
setDelegate:
setHelpMenu:
setMainMenu:
setPresentationOptions:
setServicesMenu:
setServicesProvider:
setWindowsMenu:
setWindowsNeedUpdate:
showHelp:
stop:
stopModal
stopModalWithCode:
targetForAction:
targetForAction:to:from:
terminate:
tryToPerform:with:
unhide:
unhideAllApplications:
unhideWithoutActivation
unregisterUserInterfaceItemSearchHandler:
updateWindows
updateWindowsItem:
userInterfaceLayoutDirection
validRequestorForSendType:returnType:
windows
windowsMenu
windowWithWindowNumber:
Delegate Methods
application:delegateHandlesKey:
application:printFiles:
Constants
NSUserInterfaceLayoutDirection
Return values for modal operations
NSUpdateWindowsRunLoopOrdering
NSApp
NSRequestUserAttentionType
NSApplicationDelegateReply
NSApplicationPresentationOptions
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.0
beginModalSessionForWindow:relativeToWindow:
runModalForWindow:relativeToWindow:
Revision History
Index
COMPANION GUIDES
Application Architecture Overview
Notification Programming Topics for Cocoa
Sheet Programming Topics for Cocoa
Services Implementation Guide