• 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
Re: Checkbox in a TableView cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checkbox in a TableView cell


  • Subject: Re: Checkbox in a TableView cell
  • From: Michael Dupuis <email@hidden>
  • Date: Wed, 18 Jul 2001 11:50:10 -0400

The best way to do this is to implement the delegate method
tableViewWillDisplayCell and use the aCell passed in as an NSButton. Set the
button type to NSButton.Switch and then after getting the state value from
the data source underlying your table using the tableView, tableColumn and
rowIndex passed in, use setState for the button you have created and then
set the target appropriately if necessary.

Michael


> From: email@hidden
> Reply-To: email@hidden
> Date: Wed, 18 Jul 2001 08:18:10 -0700 (PDT)
> To: email@hidden
> Subject: cocoa-dev digest, Vol 1 #295 - 16 msgs
>
> Hi,
>
> I would like to put an on/off value besides a pair of values into a
> table.
> I think the best is to use a checkbox. What is the best way to
> accomplish this task.
>
> Stefan Jung


  • Prev by Date: Re: Oops, I stand corrected. (was: Collection of Cocoa & objc questions from a "newbie")
  • Next by Date: [OT] 10.1
  • Previous by thread: Checkbox in a TableView cell
  • Next by thread: Drawing an NSImage
  • Index(es):
    • Date
    • Thread