• 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
Programmatically change NSMatrix cells' type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically change NSMatrix cells' type?


  • Subject: Programmatically change NSMatrix cells' type?
  • From: David Hoerl <email@hidden>
  • Date: Fri, 30 Nov 2007 20:34:28 -0500

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?

David
_______________________________________________

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


  • Follow-Ups:
    • Re: Programmatically change NSMatrix cells' type?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: NSTableView and displaying c strings
  • Next by Date: Re: Programmatically change NSMatrix cells' type?
  • Previous by thread: Re: NSTableView and displaying c strings
  • Next by thread: Re: Programmatically change NSMatrix cells' type?
  • Index(es):
    • Date
    • Thread