OS X - Application does not appear in effect. How to fix it?
I am writing a Cocoa application that installs as a menu in the menu bar (like volume or battery icons). When a program crashes, it is impossible to use the Force-Quit dialog because it does not appear in the list. Of course, I can still kill it using the command line, but my users don't know how. Is there a way to fix this, say to have the program appear in the Force-Quit dialog?
(Note: App is Leopard only).
source to share
Honestly, the right decision is to make sure that your application never freezes or crashes for users. This should be your # 1 priority, not figuring out how to allow users to deal with crashes and freezes. Obviously, it's not always possible to ensure that your application never breaks in these ways, but this should be the exception rather than the rule.
MenuExtras, on the other hand, is a private API that you hopefully don't use to create your "menu". Rather, the public class NSStatusItem (part of Cocoa) is an Apple-approved, recommended way to set icons to a menu bar.
source to share