• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting a class' action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Setting a class' action (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Setting a class' action
  • Next by Date: Re: Setting a class' action
  • Previous by thread: Setting a class' action
  • Next by thread: Re: Setting a class' action
  • Index(es):
    • Date
    • Thread