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

Re: Distinct action messages from matrix of NSButtonCells


  • Subject: Re: Distinct action messages from matrix of NSButtonCells
  • From: Brian Hill <email@hidden>
  • Date: Wed, 3 Oct 2001 12:03:49 -0500

On Wednesday, October 3, 2001, at 11:20 AM, Brad Werth wrote:

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?


- (void)myMatrixAction:(id)sender
{
switch([[sender selectedCell]tag])
{
case 0:
//cell with tag 0 was clicked
break
case 1:
//cell with tag 1 was clicked
break;
}
}

Brian

email@hidden http://personalpages.tds.net/~brian_hill
___________________________________________________________
"Why? I came into this game for adventure - go anywhere, travel
light, get in, get out, wherever there's trouble, a man alone.
Now they've got the whole country sectioned off and you can't
move without a form. I'm the last of a breed."
-- Archibald "Harry" Tuttle, Rogue HVAC Repairman
___________________________________________________________


  • Follow-Ups:
    • Re: Distinct action messages from matrix of NSButtonCells
      • From: "Erik M. Buck" <email@hidden>
References: 
 >Distinct action messages from matrix of NSButtonCells (From: Brad Werth <email@hidden>)

  • Prev by Date: Re: Distinct action messages from matrix of NSButtonCells
  • Next by Date: Re: Dragging a non document onto an app icon in the Dock?
  • Previous by thread: Re: Distinct action messages from matrix of NSButtonCells
  • Next by thread: Re: Distinct action messages from matrix of NSButtonCells
  • Index(es):
    • Date
    • Thread