applicationWillTerminate: issue
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