• 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
Full Keyboard Access for controls within a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Full Keyboard Access for controls within a table


  • Subject: Full Keyboard Access for controls within a table
  • From: "Peter Boctor" <email@hidden>
  • Date: Tue, 14 Mar 2006 12:50:36 -0800

I have an NSTable where some of the cells are check boxes. Without any
work on my part, I can tab to the table and use the up/down arrow to
navigate the rows.

However there doesn't seem to be a way to use the keyboard to select
(draw the focus ring) and control (space to check/uncheck) the check
boxes.

I've unsuccessfully attempted to do this programmatically by calling
[NSButtonCell setFocusRingType] and when the row is selected calling
[NSCell setShowsFirstResponder:YES].

I've set a breakpoint on NSSetFocusRingStyle and I see that for stand
alone check boxes the focus ring is drawn by NSButtonCell, but I can't
tell what criteria NSButtonCell is using such that it doesn't draw the
focus ring when it's in a table.

Any ideas?
 _______________________________________________
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

  • Prev by Date: Re: Getting a bullet into a NSString
  • Next by Date: Re: How to create a custom class to use in interface builder
  • Previous by thread: Re: Embedding a framework in a project
  • Next by thread: Re: Full Keyboard Access for controls within a table
  • Index(es):
    • Date
    • Thread