- applicationWillFinishLaunching(_:)
- 声明
- 参数
- 其他内容
- 启动App
- 相关文档
- ● func applicationWillBecomeActive(Notification)
- Sheet Programming Topics">● Sheet Programming Topics
- ● func finishLaunching()
- Services Implementation Guide">● Services Implementation Guide
- Mac App Programming Guide">● Mac App Programming Guide
- Local and Remote Notification Programming Guide">● Local and Remote Notification Programming Guide
- Notification Programming Topics">● Notification Programming Topics
applicationWillFinishLaunching(_:)
在App对象初始化之前由默认通知中心(default notification center)发送。
SDK : macOS 10.0+
声明
optional func applicationWillFinishLaunching(_ notification: Notification)
参数
aNotification
名为willFinishLaunchingNotification的通知。调用此通知的object方法将返回NSApplication对象本身。
其他内容
启动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打开用户默认指定的任何文件,并取消突出显示应用程序的图标。