FROM : Ricky Sharp
DATE : Sun Jan 20 19:33:36 2008
On Jan 20, 2008, at 12:21 PM, Development wrote:
> I would like to include a special debug menu in one of my
> application. I do not want this menu easily available, as it might
> give the average end user the ability to do things that would cause
> support nightmares for the application. What I want is to have the
> menu appear when they hold certain keys and click the Application
> menu, and vanish when they let the keys go... I'm having trouble
> finding information on this and honestly I do not even know where to
> start looking. Any ideas?
While this may be possible, it would probably be better for you to
implement what Safari does. Basically, come up with a "debug" key and
if that's there in your app's user defaults, then just add in the menu
near app startup (e.g. in awakeFromNib).
You can instruct your users to enable debug mode by doing this from
Terminal:
defaults write com.yourcompany.yourapp IncludeDebugMenu 1
___________________________________________________________
Ricky A. Sharp mailto:<email_removed>
Instant Interactive(tm) http://www.instantinteractive.com
DATE : Sun Jan 20 19:33:36 2008
On Jan 20, 2008, at 12:21 PM, Development wrote:
> I would like to include a special debug menu in one of my
> application. I do not want this menu easily available, as it might
> give the average end user the ability to do things that would cause
> support nightmares for the application. What I want is to have the
> menu appear when they hold certain keys and click the Application
> menu, and vanish when they let the keys go... I'm having trouble
> finding information on this and honestly I do not even know where to
> start looking. Any ideas?
While this may be possible, it would probably be better for you to
implement what Safari does. Basically, come up with a "debug" key and
if that's there in your app's user defaults, then just add in the menu
near app startup (e.g. in awakeFromNib).
You can instruct your users to enable debug mode by doing this from
Terminal:
defaults write com.yourcompany.yourapp IncludeDebugMenu 1
___________________________________________________________
Ricky A. Sharp mailto:<email_removed>
Instant Interactive(tm) http://www.instantinteractive.com
| Related mails | Author | Date |
|---|---|---|
| Development | Jan 20, 19:21 | |
| Ricky Sharp | Jan 20, 19:33 | |
| Development | Jan 20, 22:39 |






Cocoa mail archive

