Re: [RESOLVED] Weird problem: Application terminates unexpectedly after closing NSOpenPanel sheet

2009-01-09 Thread Oleg Krupnov
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.

Re: Weird problem: Application terminates unexpectedly after closing NSOpenPanel sheet

2009-01-09 Thread Corbin Dunn
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

Weird problem: Application terminates unexpectedly after closing NSOpenPanel sheet

2009-01-08 Thread Oleg Krupnov
Here is my code: //- - (IBAction)scanFolder:(id)sender { NSOpenPanel* openPanel = [NSOpenPanel openPanel]; [openPanel setCanChooseDirectories:YES]; [openPanel setCanChooseFiles:N