title: When to save settings of a Cocoa application?
body: <p>I have a little Cocoa Application that needs to save its settings. Is it the best practice to save every time to user made a change or is it better to save once only when the application is ended? </p>
  
  <p>Is there any event raised when the application should end or the window should close?</p>