Skip navigation.
 
mlRe: NSUserDefaults at App Exit
FROM : Domain Administrators
DATE : Thu Oct 31 22:53:01 2002

LOL. Well the obvious answer is 'no I didn't try it.' But now I did.
That did the trick. Thanks for getting me out from under this one. I
spent a good 6 hours today - like a dodo... Thank you much, Mr Joar!

Rixster

--- j o a r <<email_removed>> wrote: > 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.



__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

Related mailsAuthorDate
mlNSUserDefaults at App Exit Domain Administrat… Oct 31, 19:29
mlRe: NSUserDefaults at App Exit j o a r Oct 31, 22:06
mlRe: NSUserDefaults at App Exit Domain Administrat… Oct 31, 22:53