[Mono-osx] Window.WindowShouldClose

Andrew Ayre andy at britishideas.com
Tue Oct 18 06:16:20 EDT 2011

Adding the following code to my MainWindowController causes a crash when
sheets are opened:

Window.WindowShouldClose += MainWindowShouldClose;


private bool MainWindowShouldClose(NSObject sender) { return true; }

Once this code is added calling the following causes a nasty crash:

NSSavePanel Panel = new NSSavePanel();
Panel.BeginSheet(mainWindowController.Window, (result) => {

The sheet is not shown. The crash report says it is inside mono with

What is the connection here? Am I making a stupid mistake or is Mono
just not stable on OS X?


PGP Key ID: 0xDC1B5864

More information about the Mono-osx mailing list