[Mono-osx] Working with delegates

flohei flo at rootof.net
Tue Nov 30 08:44:58 EST 2010


Hi there,

I'm experiencing some trouble working with delegates. How do I properly use
e.g. the NSWindowDelegate? I'm not sure how to adopt this protocol in C#. In
my WindowController class I want to set its Window.Delegate property to
'this' to receive windowShouldClose and windowWillClose events. So how can I
tell my WindowController to inherit from NSWindowController and also adopt
the NSWindowDelegateProtocol?

Thanks a lot
–f
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Working-with-delegates-tp3065391p3065391.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list