[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
> I
> want to use this in my program crashes telling me "Method not found:
> 'MonoMac.AppKit.NSWindow.set_WeakDelegate'". So is there something I'm
> still
> missing?

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...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101202/17fd6309/attachment.html 

More information about the Mono-osx mailing list