Re: How do I link a menu item to 'any' method in my WindowController?
Re: How do I link a menu item to 'any' method in my WindowController?
- Subject: Re: How do I link a menu item to 'any' method in my WindowController?
- From: Donald Brown <email@hidden>
- Date: Fri, 08 Mar 2002 06:42:41 -0600
on 3/8/02 6:22 AM, Gerben Wierda at email@hidden wrote:
>
Document Based Application:
>
>
Menu items go through 'first responder' and when I want to link a menu
>
item to a target method I can do that with IB. Say for instance, the
>
clear: method.
>
>
But what if I need to connect a menu item to a method that is not
>
already defined when I look at the possible targets when I connect the
>
menu item? Say, I want to connect a menu item to my window controller's
>
foo:(id)sender method? How do I do that?
Double-click on the First Responder, that switches to the class definition.
Add whatever actions you want. It'll all work by magic.
Donald
--
Donald Brown
email@hidden
http://www.eamontales.com
We have met the enemy and he is us - Pogo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.