• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I link a menu item to 'any' method in my WindowController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How do I link a menu item to 'any' method in my WindowController? (From: Gerben Wierda <email@hidden>)

  • Prev by Date: Select-by-typing in NSTableView
  • Next by Date: Re: How do I link a menu item to 'any' method in my WindowController?
  • Previous by thread: How do I link a menu item to 'any' method in my WindowController?
  • Next by thread: Re: How do I link a menu item to 'any' method in my WindowController?
  • Index(es):
    • Date
    • Thread