applicationWillFinishLaunching(_:)

在App对象初始化之前由默认通知中心(default notification center)发送。

SDK : macOS 10.0+


声明

  1. optional func applicationWillFinishLaunching(_ notification: Notification)

参数


其他内容

启动App

func applicationDidFinishLaunching(Notification)

在App启动并初始化之后,但在收到第一个事件之前,由默认通知中心(default notification center)发送。

NSApplicationDidFinishLaunching User Info Keys

其下的常量定义了didFinishLaunchingNotification中可以存在的key。

相关文档

func applicationWillBecomeActive(Notification)

在App变为活动状态之前由默认通知中心(default notification center)发送。

Sheet Programming Topics

func finishLaunching()

激活App,通过NSOpen打开用户默认指定的任何文件,并取消突出显示应用程序的图标。

Services Implementation Guide

Mac App Programming Guide

Local and Remote Notification Programming Guide

Notification Programming Topics