Enabling/Disabling an NSTableView in an NSPanel
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