Several sheets at the same time?
Several sheets at the same time?
- Subject: Several sheets at the same time?
- From: j o a r <email@hidden>
- Date: Wed, 22 Aug 2001 18:33:21 +0200
Hello,
When a sheet was up in the main window of my single window application I
pressed CMD-N by accident - to my surprise this opened a new sheet that
I use to find files in the file system. So then I had two sheets up that
the same time - wierd! The controls didn't work in either sheet, so I
had to kill the application from PB.
Shouldn't the frameworks prevent stupid things like this from happening?
I thought that the application wouldn't answer to user input requests
like CMD-N while the first sheet was up? (Like the recent thread about
not being able to quit the application before dismissing the sheet)
The first sheet was opened with:
[NSApp beginSheet:refreshItemsSheet
modalForWindow:[myController valueForKey:@"mainWindow"]
modalDelegate:self
didEndSelector:@selector(didEndSheet:returnCode:contextInfo:)
contextInfo:refreshItemsSheet];
The second sheet with:
[openFoldersPanel beginSheetForDirectory:NSHomeDirectory()
file:nil
types:nil
modalForWindow:mainWindow
modalDelegate:self
didEndSelector:@selector(didEndSheet:returnCode:contextInfo:)
contextInfo:@"openFoldersPanel"];
Regards,
j o a r