Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notify when App quits



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.


References: 
 >Re: Notify when App quits (From: Matt Jaffa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.