Re: NSOutlineView & NSTableView setEnabled:NO not working?
Re: NSOutlineView & NSTableView setEnabled:NO not working?
- Subject: Re: NSOutlineView & NSTableView setEnabled:NO not working?
- From: Ron Lue-Sang <email@hidden>
- Date: Wed, 1 Nov 2006 12:59:32 -0800
Date: Wed, 1 Nov 2006 11:29:21 -0800
From: Robb Olsen-Albright <email@hidden>
Subject: NSOutlineView & NSTableView setEnabled:NO not working?
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
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
Are you sure you're messaging the tableview and not its scroll view?
If you set up the outlet in IB, you might have accidentally set your
file's owner's outlet to the tableview's scrollview instead of the
tableview itself.
_______________________________________________
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