Re: Distinct action messages from matrix of NSButtonCells
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
___________________________________________________________