Leopard: Multiple Sheets Per Window Bug

  • So Leopard decided to make alert dialogs magically become sheets,
    which means that a window can have multiple sheets. The only problem
    is that in my app, when I show a save sheet, and then AppKit shows a
    "Do you want to replace the existing file?" dialog, it's now shown as
    a sheet as well, but it opens BEHIND the save panel sheet. Does anyone
    have an idea of how to fix that?

    --
    Seth Willits
  • Alerts magically became sheets…? Are you sure? That's kinda goofy.

    FWIW I filed a bug on the two-sheets-on-one-window issue, which is a
    clear HIG violation, but I believe it came back as "Behaves as Intended"
    but later back to "Open" when I pinpointed the HIG line that it
    contradicted.

    rdar://4802399 [Cocoa] NSSavePanel generates two overlapping sheets

    Seth Willits wrote:
    >
    > So Leopard decided to make alert dialogs magically become sheets,
    > which means that a window can have multiple sheets. The only problem
    > is that in my app, when I show a save sheet, and then AppKit shows a
    > "Do you want to replace the existing file?" dialog, it's now shown as
    > a sheet as well, but it opens BEHIND the save panel sheet. Does anyone
    > have an idea of how to fix that?
    >
    >
    > --
    > Seth Willits
  • It might only be the replace confirmation sheet and possibly some
    others like it, but for sure it happens. You can create the simplest
    project with just two lines to show a save panel, save to a location
    that already exists, and the dialog will be a sheet. Or just do it
    with TextEdit or any other app.

    In all of those places the replace sheet is on top, but in my app, it
    opens behind the save panel sheet. When you click anywhere on the
    sheets the replace sheet comes forward, but it's confusing.

    http://www.sethwillits.com/temp/LeopardSheetBug.mov

    --
    Seth Willits

    On Nov 1, 2007, at 12:07 PM, John Stiles wrote:

    > Alerts magically became sheets…? Are you sure? That's kinda goofy.
    >
    > FWIW I filed a bug on the two-sheets-on-one-window issue, which is a
    > clear HIG violation, but I believe it came back as "Behaves as
    > Intended" but later back to "Open" when I pinpointed the HIG line
    > that it contradicted.
    >
    > rdar://4802399 [Cocoa] NSSavePanel generates two overlapping sheets
    >
    >
    > Seth Willits wrote:
    >>
    >> So Leopard decided to make alert dialogs magically become sheets,
    >> which means that a window can have multiple sheets. The only
    >> problem is that in my app, when I show a save sheet, and then
    >> AppKit shows a "Do you want to replace the existing file?" dialog,
    >> it's now shown as a sheet as well, but it opens BEHIND the save
    >> panel sheet. Does anyone have an idea of how to fix that?
    >>
    >>
    >> --
    >> Seth Willits
    >>
  • On Nov 1, 2007, at 11:47 AM, Seth Willits wrote:

    >
    > So Leopard decided to make alert dialogs magically become sheets,
    > which means that a window can have multiple sheets. The only problem
    > is that in my app, when I show a save sheet, and then AppKit shows a
    > "Do you want to replace the existing file?" dialog, it's now shown
    > as a sheet as well, but it opens BEHIND the save panel sheet. Does
    > anyone have an idea of how to fix that?

    You should file a bug about it, first. The behavior you're seeing is
    obviously wrong and shouldn't occur. Once you've filed a bug, the
    AppKit engineer who works on NSWindow and sheets might be able to
    provide a workaround (I think she reads this list, so she might
    respond here too, but don't count on it).

    -eric
  • On Nov 1, 2007, at 12:07 PM, John Stiles wrote:

    > Alerts magically became sheets…? Are you sure? That's kinda goofy.

    Not all alerts, just this one in particular.

    > FWIW I filed a bug on the two-sheets-on-one-window issue, which is a
    > clear HIG violation, but I believe it came back as "Behaves as
    > Intended" but later back to "Open" when I pinpointed the HIG line
    > that it contradicted.

    The change to use multiple sheets was specifically requested by HI, so
    I'd expect the HIG to be updated to allow this case, rather than the
    change to be reverted.

    -eric
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today