最終更新:2012-12-17 (月) 05:02:03 (2764d)  

NSApplicationDelegate
Top / NSApplicationDelegate

https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSApplicationDelegate_Protocol/Reference/Reference.html

Tasks

Launching Applications

Terminating Applications

Managing Active Status

Hiding Applications

  • applicationWillHide?
  • applicationDidHide?
  • applicationWillUnhide?
  • applicationDidUnhide?

Managing Windows

  • applicationWillUpdate?
  • applicationDidUpdate?
  • applicationShouldHandleReopen:hasVisibleWindows?

Managing the Dock Menu

  • applicationDockMenu?

Displaying Errors

  • application:willPresentError?

Managing the Screen

  • applicationDidChangeScreenParameters?

Opening Files

  • application:openFile?
  • application:openFileWithoutUI?
  • application:openTempFile?
  • application:openFiles?
  • applicationOpenUntitledFile?
  • applicationShouldOpenUntitledFile?

Printing

  • application:printFile:?
  • application:printFiles:withSettings:showPrintPanels?

Handling Push Notifications

  • application:didRegisterForRemoteNotificationsWithDeviceToken?
  • application:didFailToRegisterForRemoteNotificationsWithError?
  • application:didReceiveRemoteNotification?

Application Restorable State

  • application:didDecodeRestorableState?
  • application:willEncodeRestorableState?