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: Keeping OpenGL context in sync with HIToolbar animation.



Graham

This window has a toolbar button, which is set to animate the toolbar
slipping and sliding to and from view.

The problem, of course, is readjusting the coordinates of the OpenGL
view during that animation.
Adjusting after the event is no problem, since I can listen for the
kEventWindowToolbarSwitchMode event on the Window. But during the
animation, it's ugly. I was hoping for a kEventControlBoundsChanged
event, but no luck there.

If I recall correctly, I had to do something similar to keep a drawer the right size when the toolbar changed. I registered for kEventClassControl, kEventControlBoundsChanged on the root view (HIViewGetRoot).
--


David Dunham     A Sharp, LLC
Voice/Fax: 206 783 7404     http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to 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.