Re: Toolbars, controllers, and delegates
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.