• 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: Toolbars, controllers, and delegates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbars, controllers, and delegates


  • Subject: Re: Toolbars, controllers, and delegates
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 28 Jul 2003 03:37:50 -0400

On Monday, July 28, 2003, at 2:59 AM, Chad Armstrong wrote:

Is it possible for the items in a toolbar to refer to the methods in more than one controller? Or when the toolbar is created and the delegate set, do all of the [item setAction: @selector(foo:)]; just go to the creating controller?


toolbar items support having both a custom target and action, so you can direct the action to any object you'd like. If you don't set it (that is, -target returns nil) then the firstResponder gets a crack..

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSToolbarItem.html#//apple_ref/doc/ uid/20000682/BBCBGJCJ>
_______________________________________________
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: 
 >Toolbars, controllers, and delegates (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Cloning IB objects
  • Next by Date: Re: Cells within cells part 2
  • Previous by thread: Re: Toolbars, controllers, and delegates
  • Next by thread: Cloning IB objects
  • Index(es):
    • Date
    • Thread