Re: Radio buttons as table views
Re: Radio buttons as table views
- Subject: Re: Radio buttons as table views
- From: Alex Zavatone <email@hidden>
- Date: Tue, 26 Apr 2016 09:33:28 -0400
You could use an NSUInteger in the tableViewController to track the row that was selected and then within the cell display code turn the display of the radio button on for where indexPath.row == the value of the NSUInteger. In all other cases, set it to off.
Just thinking off the top of my head here, but this seems simple enough for display purposes.
Make sure to update the NSUInteger to the value of the cell's row if it's selected.
How does that work for you?
On Apr 25, 2016, at 9:52 AM, Lorenzo Thurman wrote:
> I've run into a problem displaying radio buttons in a table view. I need the buttons to behave as they would in a matrix, i. e., exclusive selection. The docs say that for this to happen, the buttons need to share the same supervise and action. The action is no problem, but the super view is. Has anyone tackled this issue before? Is there a way to make this work in a table? And I should add that the radio buttons are part of a subclass of NSView used as the view of a view based table.
> Thanks.
>
> "My Break-Dancing days are over, but there's always the Funky Chicken" -- The Full Monty
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden