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 2003-11-28, at 16.17, David Duncan wrote:

On Nov 28, 2003, at 05:07 AM, Erik Dahlstrom wrote:

Is it possible to get a Carbon RAEL app to continue in the main event loop while menus are open?
Can menus be handled in another event loop or something so that normal processing can proceed uninterrupted?

The main event loop does continue to run in a RAEL app. Of course, this usually means that timers fire and you stay inside the call to RunApplicationEventLoop(). What are you doing that you are seeing differently?

Yes, you are right. I misphrased my question somewhat. The timers still run, and I'm still in the RAEL call.
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.)

/Erik Dahlstrom
_______________________________________________
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>)



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.