[EMAIL PROTECTED] How to catch window close event ?

2008-10-16 Thread Miguel De Buf
Hi, I try to catch a window close event in my controller class, but the eventhandler never gets executed. This is my code : using System; using System.Collections.Generic; using System.Text; using Monobjc; using Monobjc.Cocoa; namespace windows_events { [ObjectiveCClass] public class

Re: [EMAIL PROTECTED] How to catch window close event ?

2008-10-16 Thread Miguel De Buf
It works if I set the delegate in interface builder for the window to MyWindow, and if I modify my code to : using System; using System.Collections.Generic; using System.Text; using Monobjc; using Monobjc.Cocoa; namespace windows_events { [ObjectiveCClass] public class MyWindow :

Re: [EMAIL PROTECTED] How to catch window close event ?

2008-10-16 Thread Laurent Etiemble
Hello, As stated here (http://www.monobjc.net/index.php?page=events-and-delegates), there may be some problems with some classes as the Objective-C runtime may perform aggressive caching on delegate methods. I am still searching a way to accommodate with this caching while preserving the