FROM : j o a r
DATE : Thu Oct 31 22:06:23 2002
Have you tried to call "synchronize" after you set the defaults?
[[NSUserDefaults standardUserDefaults] setYadaYadaForKey...];
[[NSUserDefaults standardUserDefaults] synchronize];
In the documentation for that method it states that it should be used
if the defaults are set when the app is about to exit.
j o a r
On Friday, Nov 1, 2002, at 04:28 Europe/Stockholm, Domain
Administrators wrote:
> This does not work - at least not for me - and I am at a loss as to
> why. I have tried (successfully) to catch a number of things "on the
> way out" such as applicationShouldTerminate,
> applicationWillTerminate, windowShouldClose, windowWillClose, and I
> have verified that this code is working - yet if I put the defaults
> save code there, it doesn't bite.
DATE : Thu Oct 31 22:06:23 2002
Have you tried to call "synchronize" after you set the defaults?
[[NSUserDefaults standardUserDefaults] setYadaYadaForKey...];
[[NSUserDefaults standardUserDefaults] synchronize];
In the documentation for that method it states that it should be used
if the defaults are set when the app is about to exit.
j o a r
On Friday, Nov 1, 2002, at 04:28 Europe/Stockholm, Domain
Administrators wrote:
> This does not work - at least not for me - and I am at a loss as to
> why. I have tried (successfully) to catch a number of things "on the
> way out" such as applicationShouldTerminate,
> applicationWillTerminate, windowShouldClose, windowWillClose, and I
> have verified that this code is working - yet if I put the defaults
> save code there, it doesn't bite.
| Related mails | Author | Date |
|---|---|---|
| Domain Administrat… | Oct 31, 19:29 | |
| j o a r | Oct 31, 22:06 | |
| Domain Administrat… | Oct 31, 22:53 |






Cocoa mail archive

