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 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?

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?

Again, this is all possible in a Carbon application. By default windows drag with content, and you can update the content of the window using a timer and by catching various resize events. For updating content position during resize you want to catch the kEventClassWindow/kEventWindowBoundsChanged event. Although you should consider using compositing mode, the majority of OS X users should have 10.2 by now, and you get many performance benefits (as well as a grand reduction of other headaches that you got with the old control manager).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
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>)



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.