【发布时间】:2015-06-15 00:06:14
【问题描述】:
在我的应用程序委托中,我放置了回调以在窗口关闭时停止程序。
func applicationShouldTerminateAfterLastWindowClosed(sender: NSApplication) -> Bool {
return true
}
但这不起作用,因为(我假设)有一个异步蓝牙任务正在运行。停止一切运行和清理的最佳方法是什么?
【问题讨论】:
标签: swift cocoa appdelegate