• 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: Using keyboard to toggle checkboxes in NSTableView cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using keyboard to toggle checkboxes in NSTableView cell


  • Subject: Re: Using keyboard to toggle checkboxes in NSTableView cell
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 18 Nov 2005 15:10:36 -0800


I have a NSTableView with a checkbox column as the first column in my data.

I want to be able to press space bar while a row is selected to have the checkbox be toggled.

Any suggestions?


Override keyDown:, look for a space, and access the selected row(s) and flip the states.

-corbin
_______________________________________________
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


References: 
 >Using keyboard to toggle checkboxes in NSTableView cell (From: Ashley Clark <email@hidden>)

  • Prev by Date: Re: URL loading system not threadsafe?
  • Next by Date: addSubView: [NSView subviews] doesn't show any subviews, after adding subviews.
  • Previous by thread: Using keyboard to toggle checkboxes in NSTableView cell
  • Next by thread: Re: Automagic instantiation of singletons? (Christian Brunschen)
  • Index(es):
    • Date
    • Thread