On 10/29/05 10:19 AM, Trygve Inda didst favor us with:
>> Further testing shows the problem is still there when not using a sheet, so
>> it seems to be some kind of confusion occurring when the results window
>> appears too quickly. I'm thinking its immediate appearance throws off the
>> DataBrowsers somehow when they're redrawing in response to the deactivation
>> of their window, but I don't know the best way to work around it.
>
> Hi Larry,
>
> You don't specifically say if the progress window is a separate MPTask, but
> instead of showing the sheet straight away, can you post a Carbon Event back
> to the app and have the result of this event be to show the sheet?
There is a separate MPTask, but it has terminated and posted an event by the
time this happens. It's in response to that event that the sheet is shown.
>
> This would cause the run loop to "cycle around" and allow time for whatever
> is taking place behind the scenes to get settled.
It's a reasonable thought, but I tried it after posting my message and it
didn't help.
After getting some sleep I tried a few more things to track this down and
was finally successful in doing so. As it turns out, it was not the sheet
that was causing the problem. It just appeared that way in the tests I
performed initially. The problem was being caused by a call to HIWindowFlush
issued after the progress window appeared, which I'd added to workaround a
different problem a long time ago. I've now determined the solution to
*that* problem, so I can remove the call to HIWindowFlush, at which point my
DataBrowser problem goes away.
This is a good example of why I dislike using using hacks to workaround
problems instead of actually solving them and why I discourage others from
using them. The call to HIWindowFlush was a hack I added to solve a problem
I encountered a few months ago when I couldn't find the real cause. It
addressed the problem, but eventually caused another one down the road. I
find this happens a lot with hacks and that's one of the reasons I try to
avoid them. Sorry for the noise.
Larry
_______________________________________________
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