Trouble with random activation for NSStatusItem
Trouble with random activation for NSStatusItem
- Subject: Trouble with random activation for NSStatusItem
- From: "B.J. Buchalter" <email@hidden>
- Date: Tue, 19 Jun 2007 02:21:45 -0400
Hi Folks,
I have implemented an NSStatusItem within a Carbon App (using Cocoa
in Carbon techniques).
Seems to work mostly OK.
However, sometimes when I click on the NSStatusItem in the menu bar
(when my app is not frontmost), my app is activated; this is not the
behavior I expect or desire.
I have put a delegate on the embedded NSApp and intercepted both the:
applicationDidBecomeActive
applicationWillBecomeActive
notifications and use them to force the original front most app back
to the front.
This also works OK, but each time this happens, the menu does not
drop down, so the user needs to click twice to get the menu to appear.
In all cases it just acts a little flakey.
I found this Q&A: <http://developer.apple.com/qa/qa2001/qa1081.html>
that indicates there was a problem in 10.1; I have implemented that
solution even though it does not appear to apply since I am testing
on 10.4; it also does not solve the problem.
Has any one dealt with this issue? Any suggestions or solutions?
B.J. Buchalter
Metric Halo
http://www.mhlabs.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden