I have found that the cause of the problem was that my XIB main window
was of class NSPanel, not NSWindow.
When the main window is an NSPanel, the application indeed attempts to
quit and calls its NSApp delegate
-applicationShouldTerminateAfterLastWindowClosed: message when the
sheet gets closed.
On Jan 8, 2009, at 11:54 PM, Oleg Krupnov wrote:
Here is my code:
//-
- (IBAction)scanFolder:(id)sender
{
NSOpenPanel* openPanel = [NSOpenPanel openPanel];
[openPanel setCanChooseDire
Here is my code:
//-
- (IBAction)scanFolder:(id)sender
{
NSOpenPanel* openPanel = [NSOpenPanel openPanel];
[openPanel setCanChooseDirectories:YES];
[openPanel setCanChooseFiles:N