[Mono-osx] Menu items on monomac

Miguel de Icaza miguel at novell.com
Wed Nov 10 11:00:36 EST 2010


> I was thinking on the delegate more as the "last responder to be the
> first", but, what should be the correct declaration?
>
> Interface Builder shows for example openDocument:, how can I respond in C#
> to it?
>
> MonoDevelop does not show it as overrideable, neither on the appdelegate
> neither on the mainwindow.
>

In either your Window, or your application delegate, like I said.

[Export ("openOrWhatever:")]
 void OpenOrWhatever (NSObject sender)


> El 10/11/2010, a las 15:54, Miguel de Icaza escribió:
>
> The first responder is the first method in the focus chain.
>
> So it would be initially the Window, if you were to close this, it would go
> to your application delegate.
>
> This means that you can define the method on either one, depending on what
> you are trying to do.
>
> Miguel
>
> On Wed, Nov 10, 2010 at 10:39 AM, Natalia Portillo <claunia at claunia.com>wrote:
>
>> This may sound a noob question but I'm unable to think how to implement
>> code for menu items.
>>
>> All menu items are by default bound to FirstResponder but I do not find
>> where is that in C# world.
>>
>> Regards,
>> Natalia Portillo
>> _______________________________________________
>> Mono-osx mailing list
>> Mono-osx at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101110/527eee24/attachment-0001.html 


More information about the Mono-osx mailing list