cocoamonomaccocoa-sheet

Am I using BeginSheet right? (MonoMac)


I have a feeling that I've either stumbled upon a bug (unlikely) or that I'm just using this function wrong (probably). I'm trying to make a sheet appear on my MainWindow. For some reason though, the sheet window pops up as a regular window without a toolbar and is in no way connected to my MainWindow at all.

Now I'm pretty new to cocoa and MonoMac so you'll have to forgive me, anyways, heres the code:

        TvShowSheetController sheet = new TvShowSheetController ();
        NSApplication.SharedApplication.BeginSheet (sheet.Window, Window);

What am I doing wrong here?


Solution

  • Aha! Setting my sheet's window property "Visible at Launch" to false solved my problem :)