Re: NSWorkspaceDidTerminateApplicationNotification bug?
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/