Window disappears with sheet

Discussion in 'Mac Programming' started by davbeck, Oct 24, 2008.

  1. davbeck macrumors regular

    Joined:
    May 16, 2008
    Location:
    Reno, NV
    #1
    From within an openPanelDidEnd, I am trying to start a sheet with the following code:
    Code:
    [NSApp beginSheet:openWindow
       modalForWindow:[self window]
        modalDelegate:nil
       didEndSelector:NULL
          contextInfo:NULL];
    the openPanel is running as a sheet as well, and when it animates out, the window that it is attached to disappears with it, and the new sheet just sits there attached to nothing.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  3. davbeck thread starter macrumors regular

    Joined:
    May 16, 2008
    Location:
    Reno, NV
    #3
    Its and openPanel run as a sheet. From within the didEnd callback function, I am opening a new sheet. However, the sheet doesn't actually close until just after my function is called.
     

Share This Page