NSOutlineView & NSTableView setEnabled:NO not working?
NSOutlineView & NSTableView setEnabled:NO not working?
- Subject: NSOutlineView & NSTableView setEnabled:NO not working?
- From: Robb Olsen-Albright <email@hidden>
- Date: Wed, 1 Nov 2006 11:29:21 -0800
I'm trying to disable outline views & table views in dialogs, but
sending setEnabled:NO to either (via an outlet in a controller) seems
to have no effect (besides setting the internal state, so that
sending isEnabled returns NO). Mouse clicks in the column headers or
cell are are still acted upon.
From NSControl docs:
Sets whether the receiver (and its cell) reacts to mouse events.
- (void)setEnabled:(BOOL)flag
Parameters
flag
YES if you want the receiver to react to mouse events; otherwise, NO.
and NSOutlineView & NSTableView both inherit from NSControl, and I
don't see any reference in their docs to why this wouldn't work.
I did search the archives and Google, but didn't turn up anything
useful. there are some references to disabling custom cells in a data
view but nothing about why you can't disable the whole control.
I did just deal with NSTextView not disabling, and there is a tech Q
& A for that, but nothing about outline/table.
Anybody have an answer or ideas?
thanks,
robb olsen-albright
_______________________________________________
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