• 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: Matt Jaffa <email@hidden>
  • Date: Tue, 2 Mar 2004 21:44:03 -0700

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


On Mar 2, 2004, at 9:25 PM, Sherm Pendley wrote:

> On Mar 2, 2004, at 8:58 PM, Matt Jaffa wrote:
>
>> I was wondering if there was a way to
>> know when an application quits.
>
> The shared NSApplication object sends its delegate a
> -applicationWillTerminate: message just before quitting.
>
> sherm--
> _______________________________________________
> 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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Notify when App quits
      • From: Manfred Lippert <email@hidden>
    • Re: Notify when App quits
      • From: Dave Hersey <email@hidden>
References: 
 >Notify when App quits (From: Matt Jaffa <email@hidden>)
 >Re: Notify when App quits (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Giving a NSToolbaritem a command key...?
  • Next by Date: Re: Notify when App quits
  • Previous by thread: Re: Notify when App quits
  • Next by thread: Re: Notify when App quits
  • Index(es):
    • Date
    • Thread