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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to