• 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: Lance Bland <email@hidden>
  • Date: Fri, 8 Mar 2002 07:52:46 -0500

On Friday, March 8, 2002, at 07:22 AM, Gerben Wierda wrote:

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?

Go to IB, click on the first responder icon in the Instance tab-view, double click, (type apple-1 to bring up the inspector if needed), click the + symbol in the action table and rename the focused row to foo:

i.e.: You can add actions to the First Responder "instance" (hook).

-lance

_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization
_______________________________________________
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: Re: How do I link a menu item to 'any' method in my WindowController?
  • Next by Date: Re: Select-by-typing in NSTableView
  • Previous by thread: Re: 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