Re: Correct behavior of NSTableView?
Re: Correct behavior of NSTableView?
- Subject: Re: Correct behavior of NSTableView?
- From: Drew McCormack <email@hidden>
- Date: Wed, 7 Nov 2001 08:53:34 +0100
If I have an NSTableView where the cells are editable, I begin to
edit a
cell, and while editing the cell I call "setRowHeight:", the rows of
the
table do resize, but the field editor does not. Surely this is
incorrect
behavior. If I call setRowHeight:, surely the NSTableView is
responsible
for resizing the NSTextView (field editor) which it has control over.
My guess is that setRowHeight: isn't meant to be called in the middle
of an editing session. Whether this is a bug or a feature is up for
debate. In any case, you might want to try ending the editing session,
then setting the row height and restart the editing. This might look a
little funky, and it might not do as a permanent solution, but it would
at least confirm my suspicion.
I'm sure you are right about this, but as you say it doesn't really help
me in the long run. I definitely think the NSTableView, and any other
NSView, should be responsible for updating the field editor if it makes
use of it. It may not be a bug, but what I am doing seems to be a
legitimate use, and it doesn't work.
I guess nobody is willing to help me with a solution. Hasn't anyone ever
had to deal with the field editor before? Can't someone point me to some
sample code which may help?
Cheers,
Drew McCormack