Re: Notify when App quits
Re: Notify when App quits
- Subject: Re: Notify when App quits
- From: Dave Hersey <email@hidden>
- Date: Wed, 03 Mar 2004 09:45:45 -0500
Matt,
That code should be:
[[NSNotificationCenter defaultCenter] addObserver: self
selector: @selector(NotifyMe:)
name: NSApplicationWillTerminateNotification
object: nil];
But that won't do what you want. That will just notify you if *your*
application will terminate.
- dave
On 3/2/04 11:44 PM, "Matt Jaffa" <email@hidden> wrote:
>
Hmmmm,
>
>
I was looking into this,
>
will registering for a notification center like this inform me? Cause
>
it is not working so far.
>
And what type of apps will it inform me on?
>
>
[[NSNotificationCenter defaultCenter] addObserver:self
>
>
selector:@selector(NotifyMe:)
>
>
name:@"NSApplicationWillTerminateNotification" object:nil];
>
>
>
Is this wrong?
>
>
Thanks,
>
Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.