Pripyat
Pripyat

Reputation: 2937

NSApplication Delegate Question

I was wondering if - (void)applicationWillTerminate:(NSNotification *)notification is still called when the system shuts down and the application is told to quit.

I'm working on an agent that needs to perform some actions when quitting, but I'm not sure if the delegate is called or not.

Thanks!

Upvotes: 1

Views: 466

Answers (1)

一二三
一二三

Reputation: 21239

Yes, applicationWillTerminate: will be called. The best-practices for clean application shutdown are documented by Apple.

Upvotes: 2

Related Questions