Correct behavior of NSTableView?
Correct behavior of NSTableView?
- Subject: Correct behavior of NSTableView?
- From: Drew McCormack <email@hidden>
- Date: Tue, 6 Nov 2001 20:18:23 -0800
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.
Is this a bug, or at least a break in the class logic? Can anyone tell
me how I could get the field editor to resize?
Setting the frame of the field editor, as follows, DOES NOT work:
NSRect frameToChangeTo;
NSTextView *fieldEditor;
fieldEditor = [[self window] fieldEditor:YES forObject:nil];
[self setRowHeight: 90 ];
frameToChangeTo = [self frameOfCellAtColumn:[self editedColumn]
row:[self editedRow]];
[fieldEditor setFrame: frameToChangeTo];
[self display];
Drew McCormack