• 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
column of buttons in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

column of buttons in NSTableView


  • Subject: column of buttons in NSTableView
  • From: Boyd Collier <email@hidden>
  • Date: Mon, 30 Oct 2006 13:02:26 -0800

I just had a look at TableDemo at www.macdevcenter.com, which is very clear and easy to understand.

I'd like to make some changes in it so that a column will contain switch buttons. It looks like this would be easy simply by creating as many instances of NSButtonCell as I need, setting their type to NSSwitchButton, putting them in an instance of NSArray that becomes part of my data source, etc. But this also seems wasteful of space if the column is very long, and I'm wondering whether there is a commonly-used, efficient way of accomplishing the job. Feel free to tell me that I'm remiss for having overlooked something in the docs or in sample code that everyone should know about, but please point me to what I've missed.

Thanks,
Boyd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: column of buttons in NSTableView
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Should a scroller be visible or not?
  • Next by Date: RE: [moderator] Re: swizzling a class to a subclass inorder to add ivars (& methods) to a class
  • Previous by thread: Re: Should a scroller be visible or not?
  • Next by thread: Re: column of buttons in NSTableView
  • Index(es):
    • Date
    • Thread