Skip navigation.
 
mlRe: Cleaning up a singleton
FROM : Sebastian Nowicki
DATE : Sat May 24 10:15:40 2008

On 24/05/2008, at 3:48 PM, Andreas Mayer wrote:

> In case you use the notification, there is no need to expose 
> anything. You just register a method of your singleton to receive 
> the NSApplicationWillTerminateNotification and do your cleanup there.
>
> On Apple's developer website there are several example projects that 
> make use of this. Here's one:
>
> http://developer.apple.com/samplecode/CapabilitiesSample/listing5.html
>
> You need only look at the -init and the -applicationWillTerminate: 
> methods.
>
>
> Andreas


Oh, that is awesome. Thanks for pointing it out.

--
Sebastian Nowicki

Related mailsAuthorDate
mlCleaning up a singleton Sebastian Nowicki May 24, 08:07
mlRe: Cleaning up a singleton Andreas Mayer May 24, 08:20
mlRe: Cleaning up a singleton Andrew Merenbach May 24, 08:24
mlRe: Cleaning up a singleton Sebastian Nowicki May 24, 09:28
mlRe: Cleaning up a singleton Andreas Mayer May 24, 09:48
mlRe: Cleaning up a singleton Sebastian Nowicki May 24, 10:15