Re: Window server problematic ordering policy ?
Re: Window server problematic ordering policy ?
- Subject: Re: Window server problematic ordering policy ?
- From: Kristin Webster <email@hidden>
- Date: Fri, 6 Jul 2001 10:39:58 -0700
Interesting - I do see the problem you describe. This happens because
we force the modal window to the front when the application first shows
it, even though the application is not active. We don't discover that
we need to lower the window level until after you activate Stock
Observer and deactivate again. If you were to activate Stock Observer,
then activate some other app, you would see the window ordering you
expect - that is, Stock Observer's modal window would not insist on
being frontmost.
I've made some general modal window changes for the next release, so you
should not see this problem there.
Kristin
On Friday, July 6, 2001, at 10:23 AM, Stiphane Sudre wrote:
>
On vendredi, juillet 6, 2001, at 06:47 PM, Kristin Webster wrote:
>
>
> Yes, that is how it is supposed to work. If possible, I would like to
>
> see the modified project to verify I don't have a bug there - or a
>
> code diff would be fine too.
>
>
Here is a .tar.gz archive of the modified NotificationObserver project
>
and resulting build.
>
>
You just have to :
>
>
1) Launch the Stock Observer app
>
2) Click on add
>
3) Launch the Stock Market app (you can use the original one in
>
/Developer/Examples/CoreFoundation
>
4) Post the notification: wait for the Modal dialog
>
5) Launch an application
>
>
--
>
Stephane
>
Begin forwarded message:
>
From: Stiphane Sudre <email@hidden>
>
Date: Tue Jul 03, 2001 09:51:29 AM US/Pacific
>
To: email@hidden
>
Subject: Window server problematic ordering policy ?
>
>
There's a problematic situation (according to me) with windows ordering
>
in a situation like this one:
>
>
- An application similar to the Stock Observer one in the
>
CoreFoundation Sampe code
>
- An application similar to the Stock Market one at the same location.
>
>
the Stock observer displays a Modal Dialog when it receives a
>
Notification.
>
>
Windows ordering at the beginning is :
>
>
Stock Observer Window Back
>
Stock Market Window Front
>
>
Stock Market posts a notification
>
>
Stock Observer catches it and shows its modal dialog.
>
>
The Windows ordering is now the following one:
>
>
Stock Observer Window Back
>
Stock Marker Window middle
>
Stock Observer Dialog Front
>
>
Now you launch an application, like Mail.app:
>
>
the Windows ordering is now:
>
>
Stock Observer Window Back
>
Stock Marker Window middle
>
Mail Window middle
>
Stock Observer Dialog Front
>
>
To set the "good" ordering back, you need to click on the Stock
>
Observer Window.
>
>
I don't understand why a modal dialog can be and stay the frontmost
>
window in this case.
>
>
Is it the correct windows ordering policy or a bug ?
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev