| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Is it possible to get a Carbon RAEL app to continue in the main event loop while menus are open?
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...
Also, if I'm dragging a carbon window (Standard window event handlers, document window type, non-compositing) is it possible to have live updating of the window contents? (For that I'd also need the main event loop to continue as normal). I see that for example Camino is able to continue loading a page and display the progress while I'm dragging the window around. Is that a feature that can be done only in Cocoa apps?
Live resizing is no problem, that's been working a long time (with kWindowLiveResizeAttribute as you mentioned).
It's live updating when a menu is open, and live updating when dragging a window around that are issues.
I think you are right Dario, AsyncDrag should only affect drag events. I think my confusion was coming from the fact that you also get bounds changing events during drag - with async drag you will get fewer of these kinds of bounds changing (or at least are supposed to from what I understand).
If you are expecting Update events, you won't get many of them (if any at all) during menu tracking on Mac OS X.
| References: | |
| >Live content questions (From: Erik Dahlstrom <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.