Post

Replies

Boosts

Views

Activity

ApplicationWillTerminate not called?
Newbie here.I created a test MacOS application project in Objective-C. XCode generated the basic classes including AppDelegate. The documentation says that when the app quits then the applicationWillTerminate message is sent to the NSApplicationDelegate, which is where my app cleanup code should go. But when I choose "Quit" in the "File" menu neither applicationShouldTerminate nor applicationWillTerminate are called. The app just quits. What is wrong here?By the way, applicationDidFinishLaunching is called, so I know my appDelegate object has been installed in the NSApp correctly.
3
0
2.1k
Apr ’20