I am writing a mac application that is on the menu bar and presenting the user with an NSPanel instance when it clicks on the status item. I want to hide the window whenever another status menu opens. Right now my panel remains open; it looks like this:

I see other applications, like mine, when another status item opens its menu, so I'm wondering what notification they will know in order to disappear. I looked at NSWindowDelegate and NSApplicationDelegate , but I don't see any generated notifications.
Are there any suggestions?
source share