我在 Xcode 中创建了一个 AppleScript 应用程序,我想知道如何让应用程序在窗口关闭后退出。
最佳答案
添加 applicationShouldTerminateAfterLastWindowClosed: AppDelegate 中的方法,例如:
on applicationShouldTerminateAfterLastWindowClosed_(sender)
return true
end applicationShouldTerminateAfterLastWindowClosed_
关于xcode - 在 AppleScript 中关闭窗口后退出应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8365737/