• 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 bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspaceDidTerminateApplicationNotification bug?


  • Subject: Re: NSWorkspaceDidTerminateApplicationNotification bug?
  • From: Norbert Heger <email@hidden>
  • Date: Tue, 15 Jan 2002 15:57:47 +0100

There's another bug with this notification:

The NSWorkspaceDidTerminateApplicationNotification is not sent if the
terminated application was already running at the time you've started to
observe the notification. It is only sent for applications that have been
launched *after* the first time you send -addObserver:selector:... to
NSWorkspace's notificationCenter - e.g.:

- Launch some app (e.g. TextEdit)
- Invoke [[[NSWorkspace sharedWorkspace] notificationCenter]
addObserver:self selector:someSelector
name:NSWorkspaceDidTerminateApplicationNotification object:nil]
in an observing application
- Quit TextEdit
- BUG: The observing application will *NOT* receive the
NSWorkspaceDidTerminateApplicationNotification
- Launch TextEdit
- Quit TextEdit
- Now the NSWorkspaceDidTerminateApplicationNotification is sent properly


If filed a bug (Problem ID: 2841095)

Best Regards, Norbert

_____________________________________________
Norbert Heger, Objective Development
http://www.obdev.at/


References: 
 >NSWorkspaceDidTerminateApplicationNotification bug? (From: Mike Davis <email@hidden>)

  • Prev by Date: Re: NSMatrix and NSCell redraw performance
  • Next by Date: Re: Output from NSTask and modal window
  • Previous by thread: Re: NSWorkspaceDidTerminateApplicationNotification bug?
  • Next by thread: Re: NSWorkspaceDidTerminateApplicationNotification bug?
  • Index(es):
    • Date
    • Thread