Sheets inside panels
Sheets inside panels
- Subject: Sheets inside panels
- From: Julien Dufour <email@hidden>
- Date: Tue, 15 Jun 2004 10:26:07 +0200
Hello
In my application, I have an inspector which is an utility panel. This
inspector happens to use various sheets to alert the user or to select
files for instance. Here is the scenario:
1/ The user is working in the inspector panel (which is the key window).
2/ The user performs some action which begins a sheet in the panel. The
sheet becomes the key window.
3/ The user closes the sheet (by validating or canceling it whatever).
4/ The main window of the application becomes the key window.
The problem is that the inspector cannot be the main window since it is
a panel. So, the resulting behavior is worrisome because the window
into which the user was working just lost the "focus". Visually, the
appearance of the window change without obvious reason, and the the
user has to select it again in order to continue his work.
That behavior can be observed in various applications (the inspector of
Xcode for once, when choosing the path of the inspected file).
Here are a few questions/suggestions:
1/ First, am I doing something wrong? (I prefer to ask)
2/ Is that behavior deliberate? I don't think so, but that must be
stated before continuing the debate.
3/ In the depicted case, the following behavior seems better to me:
when closing a sheet which is the key window, make the embedding window
the key window. What do you think?
4/ I guess that there is currently a general policy without distinction
between the kind of the embedding window (which works fine for
non-panel windows). Could/should the above suggestion become the
general policy? It should work fine in the depicted case, but other
troubles may appear.
Best regards.
Julien Dufour
Inferiis -
http://www.inferiis.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.