I created an AppleScript application in Xcode and I want to know how to make the application exit after the window is closed.
< /div>
Add applicationShouldTerminateAfterLastWindowClosed: method to AppDelegate, for example:
on applicationShouldTerminateAfterLastWindowClosed_(sender)
return true< br />end applicationShouldTerminateAfterLastWindowClosed_
I created an AppleScript application in Xcode and I want to know how to make the application exit after the window is closed.
Add applicationShouldTerminateAfterLastWindowClosed: method in AppDelegate, for example:
on applicationShouldTerminateAfterLastWindowClosed_(sender)
return true
end applicationShouldTerminateAfterLastWindowClosed_