• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
applicationWillTerminate: issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applicationWillTerminate: issue


  • Subject: applicationWillTerminate: issue
  • From: Michael de Haan <email@hidden>
  • Date: Mon, 24 Aug 2009 17:33:21 -0700

May I ask the group the following?

In my small application, I save the user's preferences with applicationWillTerminate:

The application uses 2 "applicationWillTerminate:", one in the app's main class, the other in the app's preference class. What happens is that if the preference class is not used ( ie the user makes no changes to the preferences) the user's last values are saved in the app's main class, in "applicationWillTerminate". If however, the user makes a change to any preferences, **only** the pref class "applicationWillTerminate:" is called ie the second "applicationWillTerminate" is ignored.


So, 2 quick questions.

1) Is what I am seeing expected behavior or am I doing something wrong.

2) Although not strictly speaking a cocoa question, would better design be to collect all "values/properties" to be saved in one location, thus avoiding the problem I am having?

Apologize if this is in the documentation or CocoaBuilder...I was not able to find anything.

Thanks in advance.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: applicationWillTerminate: issue
      • From: Graham Cox <email@hidden>
    • Re: applicationWillTerminate: issue
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSTableView and programmatic changing of contextual menu
  • Next by Date: Re: NSTableView and programmatic changing of contextual menu
  • Previous by thread: Re: NSTableView and programmatic changing of contextual menu
  • Next by thread: Re: applicationWillTerminate: issue
  • Index(es):
    • Date
    • Thread