• 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: NSWorkspaceDidTerminateApplicationNotification not being posted
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspaceDidTerminateApplicationNotification not being posted


  • Subject: Re: NSWorkspaceDidTerminateApplicationNotification not being posted
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 12 Dec 2006 17:21:59 -0700


On Dec 12, 2006, at 5:13 PM, Dominic Feira wrote:

The didLaunch comes through correctly at all times. However, the didTerminate notification sometimes does not post. In an effort to be thorough, I logged the events by overriding [NSApplication sendEvent:]. ProcessNotification event's are posted correctly for applications launching, but not quitting. For whatever reason cocoa is not being notified of the change.

This is just a guess, but does your application call either NSApplicationMain() or NSApplicationLoad() before using NSWorkspace? The behavior of NSWorkspace is completely unpredictable if you do not initialize the AppKit properly first.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSWorkspaceDidTerminateApplicationNotification not being posted
      • From: Dominic Feira <email@hidden>
References: 
 >NSWorkspaceDidTerminateApplicationNotification not being posted (From: Dominic Feira <email@hidden>)

  • Prev by Date: NSWorkspaceDidTerminateApplicationNotification not being posted
  • Next by Date: Re: NSWorkspaceDidTerminateApplicationNotification not being posted
  • Previous by thread: NSWorkspaceDidTerminateApplicationNotification not being posted
  • Next by thread: Re: NSWorkspaceDidTerminateApplicationNotification not being posted
  • Index(es):
    • Date
    • Thread