• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sheets inside panels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Sheets inside panels
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: window resize problem (NSMinX(windowFrame), NSMaxY(windowFrame)
  • Next by Date: Re: Sheets inside panels
  • Previous by thread: Re: newbie: why would a menu item be grayed out?
  • Next by thread: Re: Sheets inside panels
  • Index(es):
    • Date
    • Thread