Re: Setting a class' action
Re: Setting a class' action
- Subject: Re: Setting a class' action
- From: Sherm Pendley <email@hidden>
- Date: Wed, 14 Aug 2002 20:42:33 -0400
On Wednesday, August 14, 2002, at 08: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?
Sounds to me like using an NSMatrix and populating it with NSButtonCells
would be easier.
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.