[Mono-osx] Working with delegates
Miguel de Icaza
miguel at novell.com
Thu Dec 2 10:20:18 EST 2010
> But after that the compiler tells me, that it cannot implicitly convert
> MyWindowController to NSWindowDelegate. Yeah, sure. So why not just use
> Window.WeakDelegate = this;?
This is what you need.
> This one throws no error at compile time but when I try to open the Window
> want to use this in my program crashes telling me "Method not found:
> 'MonoMac.AppKit.NSWindow.set_WeakDelegate'". So is there something I'm
You have mixed old and new assemblies, the compiler would not have let you
generate the assembly at that point.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx