Re: NSTableView and NSTextView
Re: NSTableView and NSTextView
- Subject: Re: NSTableView and NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Wed, 17 Oct 2001 12:31:04 -0700
On Wednesday, October 17, 2001, at 08:47 PM, Drew McCormack wrote:
I want to have an NSTableView such that a cell can be edited, and when
the return/enter is hit, the row grows and the cell doesn't stop
editing. In other words, I would like NSTextView like behavior in an
NSTableView. Only problem is, there is no NSTextViewCell. What is the
best way to go about this?
When a cell is being edited, it gets a field editor, which is an
NSTextView. Normally this textview has been configured to end editing
on a return or tab, by sending it setFieldEditor:YES. If you send it
setFieldEditor:NO, then it will behave like a standard textview. There
are a number of places where you might do this; the NSCell method
setUpFieldEditorAttributes: comes to mind.
Douglas DAvidson