Re: IBAction in a different class
Re: IBAction in a different class
- Subject: Re: IBAction in a different class
- From: Sherm Pendley <email@hidden>
- Date: Sun, 16 May 2004 12:28:49 -0400
On May 15, 2004, at 5:17 PM, Matt Ball wrote:
I would like to set the action of an NSToolbarItem in my
ToolbarController class to be an IBAction that is located in my
AppController class. Is this possible?
Sure. Just connect it to the responder chain - "First Responder" in IB,
or with [tbItem setTarget:nil] in code. And make your AppController
object a delegate of NSApp, so it's in the responder chain.
For more info, see Apple's docs at <
http://tinyurl.com/2d7gn>
sherm--
_______________________________________________
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.