App menubar dead
App menubar dead
- Subject: App menubar dead
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 25 Oct 2006 18:15:06 -0400
- Thread-topic: App menubar dead
I hide my app programmatically. But when it unhides, its menubar is
unresponsive. Any ideas on how to avoid this problem?
Specifically, my app can open a utility window that floats above all other
apps. When the utility window loads, I call NSWindow's setCanHide:No on it
so that it can't be hidden, then I call [NSApp hide:] to hide all my app's
other windows. Then, when I click on the utility window, all my app's other
windows become unhidden (the system does this, not my code). However,
although my app's menu bar appears at the same time, it is unresponsive.
If I activate another app -- for example, the Finder by clicking on the
desktop -- then reactivate my app, my app's menubar comes back to life.
I would be happy with either of these solutions: (1) prevent the application
from unhiding when I click in the utility window, or (2) make the menubar
responsive as soon as it does unhide. I can't find a way to implement either
solution.
Any ideas?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden