• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Correct behavior of NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Dynamically connecting IBOutlet
  • Next by Date: Re: NSCoding oddity
  • Previous by thread: Follow-up: Weird SIGBUS errors
  • Next by thread: Re: Correct behavior of NSTableView?
  • Index(es):
    • Date
    • Thread