Thanks for this info, but it does not seem to work correctly. I
have a Status Item app (Main menu bar), and the Notification
NSWorkspaceWillPowerOffNotification setup correctly, but it never
gets called. I just tried this in a normal app and there is no
problem with that it gets called with no problem. But under this
Menu Bar app it is never called. Now I found some links that talk
about this not working for background apps, but they never came to
any real conclusion. Has anyone else ever experienced this?
Are you sure you're using the correct notification center?
NSWorkspace has its own notification center separate from the default
center.