Re: Setting a class' action
Re: Setting a class' action
- Subject: Re: Setting a class' action
- From: Kevin Callahan <email@hidden>
- Date: Wed, 14 Aug 2002 17:40:43 -0700
Have you tried using NSMatrix ? set the action for the matrix and then
use the selectedCell's tag to know which button was pressed.
Kevin
On Wednesday, August 14, 2002, at 05:28 PM, Andrew Merenbach wrote:
I would like every one of about 109 different buttons in a periodic
table of the elements to call the same action. Each button uses a
custom subclass of NSButton, in a different color. I can assign the
actions to all the buttons manually, but since there are several
differently-colored periodic tables in my program, this could take
hours. Is there a way to set an action of all buttons of a particular
class in the class definition file?
Take care,
Andrew Merenbach
_______________________________________________
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.
_______________________________________________
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.