[Mono-osx] MonoMac delegates howto?

Andrew Brehm ajbrehm at gmail.com
Sun Oct 9 10:14:25 EDT 2011

I am trying to figure out MonoMac with Xcode 4 and most things appear to
work. However, I cannot figure out how to get windowWillClose: to work.

I added

    [Export ("windowWillClose:")]
    void windowWillClose(NSNotification notification)

to MainWindow.cs and made MainWindow a delegate for the window. (I tried
making MainWindowController the delegate but that simply didn't work.)

However, when I close the window, the delegate method doesn't get called.

What am I overlooking?

View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-delegates-howto-tp3887438p3887438.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list