Yep. This looks like the best solution. Will give this a go.
Thanks
-Mic
2009/3/13 Dave DeLong :
> Similarly, couldn't you have the singleton itself register to receive the
> applicationWillTerminate notification? I don't think it has to be done via
> the app's delegate.
>
> Something like:
>
>
Similarly, couldn't you have the singleton itself register to receive
the applicationWillTerminate notification? I don't think it has to be
done via the app's delegate.
Something like:
(in your singleton's accessor, or perhaps a private initializer?)
[[NSNotificationCenter defaultCenter] ad