• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Notify when App quits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Fwd: Thanks for the TableView hint.
  • Next by Date: Re: Thanks for the TableView hint.
  • Previous by thread: Re: Notify when App quits
  • Next by thread: Re: Notify when App quits
  • Index(es):
    • Date
    • Thread