Re: Programmatically change NSMatrix cells' type?
Re: Programmatically change NSMatrix cells' type?
- Subject: Re: Programmatically change NSMatrix cells' type?
- From: Ricky Sharp <email@hidden>
- Date: Fri, 30 Nov 2007 20:03:17 -0600
On Nov 30, 2007, at 7:34 PM, David Hoerl wrote:
I have a NSMatrix with a bunch of NSButton cells in it, in a column.
What I would like to do is show the list as an alternate list of
checkboxes and radio buttons.
[For the curious, this is a sheet that gets shown with a list of
items to be operated on - in some cases you can select multiple
items (checkboxes) and at other times just one item (radio button).]
I tried three approaches:
- delete all the cells, change the prototype from NSSwitchButton to
NSRadioButton (or vice versa), then "renew" the cells
- walk the list of cells and change the type appropriately
- both together.
In all cases, I get the style originally defined in IB3:
switchButton (aka checkbox).
So, what obvious step did I miss?
It would be easier just to use a list. Then, set the list to single
vs. multiple select as needed.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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