Zachary
Zachary

Reputation: 146

How do I write custom code upon application quit?

So im trying to figure out how to run custom code when my application quits. Kind of like how I run awakeFromNib when the program starts to initiate certain items, im looking for the program quit equivilant so I can save the user interface state. Thanks.

Zach

UPDATE: Im not programmin in iOS, im trying to write a mac application.

Upvotes: 0

Views: 279

Answers (1)

Carl Norum
Carl Norum

Reputation: 225142

You're looking for applicationWillTerminate, I think.

Upvotes: 1

Related Questions