Re: IBAction in a different class
Re: IBAction in a different class
- Subject: Re: IBAction in a different class
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 15 May 2004 16:07:33 -0600
On May 15, 2004, at 3: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?
Yes, if your ToolbarController class can get a pointer to the address
of your AppController class. One way of doing this, if AppController is
your NSApplication delegate object, is to call [NSApp delegate]. You
could also consider writing a singleton accessor method in your
AppController class.
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
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.