• 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
Distinct action messages from matrix of NSButtonCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distinct action messages from matrix of NSButtonCells


  • Subject: Distinct action messages from matrix of NSButtonCells
  • From: Brad Werth <email@hidden>
  • Date: Wed, 03 Oct 2001 09:20:50 -0700
  • Organization: ORCAS, Inc.

Hi all,

I am trying to use an NSMatrix of NSButtonCells to easily manage an
array of buttons in my user interface. What I would like is to be able
to get a distinct action message from each button. Initially, in IB, I
set the target and action of the NSMatrix just to see what would happen.
Well, my action method was getting the NSMatrix as the sender, when
what I really want is one of the NSButtonCells. So then I
programmatically set the target and action of each cell, but this had
the exact same effect.

Is there a way to receive the NSButtonCell as the sender of the action
message? Or is there a way to determine which cell was clicked when the
NSMatrix is the sender? In general, how are people making matrices of
NSButtonCells do anything useful?

Thanks,
Brad Werth
email@hidden


  • Follow-Ups:
    • Re: Distinct action messages from matrix of NSButtonCells
      • From: Brian Hill <email@hidden>
    • Re: Distinct action messages from matrix of NSButtonCells
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: Dragging a non document onto an app icon in the Dock?
  • Next by Date: know if an application need all the screen.
  • Previous by thread: OT: file name length
  • Next by thread: Re: Distinct action messages from matrix of NSButtonCells
  • Index(es):
    • Date
    • Thread