• 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
Enabling/Disabling an NSTableView in an NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enabling/Disabling an NSTableView in an NSPanel


  • Subject: Enabling/Disabling an NSTableView in an NSPanel
  • From: Jeffrey Johnson <email@hidden>
  • Date: Mon, 16 Oct 2006 10:34:31 -0400

Hello,

I have a pretty simple NSPanel that contains two NSTableViews, one which is always enabled, and one that needs to become enabled/disabled when a checkbox is clicked. I've got a simple NSWindowController subclass (MyPanelController) that is set as the dataSource and delegate to the two tables.

the table-controlling checkbox is initially unchecked, and I'm doing a [secondTable setEnabled:NO] in my awakeFromNib: in MyPanelController (since I can't find an "enabled" checkbox for NSTableView objects in IB). But while secondTable doesn't draw any items in its box when "disabled", when I click on it, it draws a focus ring, and it's part of the tab traversal.

Enabling/disabling tables and lists seems like such a basic operation. (What I'd really like is for a disabled NSTableView to draw its items greyed, but...). What is the right way to disable NSTableViews so they remove themselves out of the tab traversal path?


Thanks
Jeffrey Johnson
Macintosh Development
Wavefunction, Inc.
 _______________________________________________
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: Enabling/Disabling an NSTableView in an NSPanel
      • From: Hank Heijink <email@hidden>
  • Prev by Date: Do Notifications thread?
  • Next by Date: Re: Do Notifications thread?
  • Previous by thread: Re: Do Notifications thread?
  • Next by thread: Re: Enabling/Disabling an NSTableView in an NSPanel
  • Index(es):
    • Date
    • Thread