Re: Dumb question about radio buttons
Re: Dumb question about radio buttons
- Subject: Re: Dumb question about radio buttons
- From: Seth Willits <email@hidden>
- Date: Thu, 23 Feb 2012 12:04:24 -0800
On Feb 23, 2012, at 5:58 AM, William Squires wrote:
> I have a custom view with an NSBox containing an NSMatrix of button cells (radio buttons) When I created the NSMatrix, I told it I wanted 3 of them, but in the view hierarchy, I can see the NSMatrix under the NSBox, but it has 4 button cells under it, not the three I asked for.
The top one is the prototype cell for the matrix. It's duplicated when new cells are added.
> Also, even though I set the tag for each button cell ….
The sender is the matrix, not the individual cell.
> Am I supposed to connect the NSMatrix to the action, and not the individual cells? If so, how do I ask for the cell's tag value?
You have selectedCell to determine which radio cell is selected, and can get its tag from that.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden