• 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
Setting a class' action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting a class' action


  • Subject: Setting a class' action
  • From: Andrew Merenbach <email@hidden>
  • Date: Wed, 14 Aug 2002 17:28:33 -0700

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.

  • Follow-Ups:
    • Re: Setting a class' action
      • From: Chris Giordano <email@hidden>
    • Re: Setting a class' action
      • From: Sherm Pendley <email@hidden>
    • Re: Setting a class' action
      • From: Kevin Callahan <email@hidden>
  • Prev by Date: Help with offscreen drawing
  • Next by Date: Re: Setting a class' action
  • Previous by thread: Re: Help with offscreen drawing
  • Next by thread: Re: Setting a class' action
  • Index(es):
    • Date
    • Thread