Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Live content questions



On 28 Nov 2003, at 17:27, Erik Dahlstrom wrote:

I'll take an example instead: I have a networking thread that posts events to the main event queue and those events are picked up by an eventhandler that only handles that kind of event. When a menu is down I get no events in that eventhandler even though the network thread still posts events. (For debugging I set a global flag when menutracking begins and I clear it when menutracking ends. When the flag is set I get no events in my eventhandler.)

That is indeed strange, and it would seem to imply that standard menu tracking does not use one of the TrackMouseLocation APIs -- I guess only Eric or someone from HIToolbox could confirm this -- or that non-system events are not dispatched during menu tracking...

If your handler is installed on the application event target, you might try this -- when menu tracking begins, remove the handler from the app and install it on the menu; when menu tracking ends, do the opposite. I understand this seems a little bit far fetched, but it's only a few lines of code, so why not give it a try?

HTH,
Dario
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Live content questions (From: Erik Dahlstrom <email@hidden>)
 >Re: Live content questions (From: David Duncan <email@hidden>)
 >Re: Live content questions (From: Erik Dahlstrom <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.