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: Can't hide window before changing group/attributes?




On Nov 2, 2007, at 10:02 AM, Eric Schlegel wrote:

Like Uli asked, maybe you're telling TransitionWindowWithOptions to run asynchronously, and so it doesn't do the fade until after you've returned back to your event loop. Try using a synchronous transition.

I didn't realize it could be told to operate synchronously (thanks Uli), so I'll try that first.


However, it seems like there's a correctness issue. In the one routine, I first hide it, do some stuff, then show it. If I hide/show asynchronously, the window remains hidden. Seems like that's wrong.

However, I suggest a better way. Just use DisableScreenUpdates and EnableScreenUpdates around all of your window manipulation. None of the window sizing/updating will be visible until you call EnableScreenUpdates. Then you don't have to use TWWO at all (unless you want to).

I might try that, if the fade takes too long. But I thought the fade would be nice.


--
Rick

_______________________________________________
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
References: 
 >Can't hide window before changing group/attributes? (From: Rick Mann <email@hidden>)
 >Re: Can't hide window before changing group/attributes? (From: Eric Schlegel <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.