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).

+2


source to share


3 answers


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.

+3


source


Not really an answer, but hopefully still helpful ...



I think that most people who know how to get them to quit also know that they can kill the process on the activity monitor. Just make sure it's not named "93AZkZ" or something like that.

0


source


You can provide a PreferencePane for your application that can send the correct signal to it if you want to allow users an easy way to close or restart it. This is the pattern that MySQL uses on OS X.

0


source







All Articles