Re: Correct behavior of NSTableView?
Re: Correct behavior of NSTableView?
- Subject: Re: Correct behavior of NSTableView?
- From: Chuck Pisula <email@hidden>
- Date: Mon, 19 Nov 2001 15:41:24 -0800
On Tuesday, November 6, 2001, at 11:53 PM, Drew McCormack wrote:
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.
Log a bug.
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?
NSControl can you return you the field editor via -currentEditor. If
you use the fieldEditor:forObject: method, you probably don't want YES
as the first parameter. Not sure, but -currentEditor is probably the
best route.
Cheers,
Drew McCormack
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev