Re: NSTableView: serious flaw when it comes to text edition? [SOLVED]
Re: NSTableView: serious flaw when it comes to text edition? [SOLVED]
- Subject: Re: NSTableView: serious flaw when it comes to text edition? [SOLVED]
- From: Stephane Sudre <email@hidden>
- Date: Tue, 6 Sep 2005 19:02:35 +0200
On 6 sept. 05, at 12:26, Stephane Sudre wrote:
Let's say I have a NSTableView with one column for text edition.
If I set the data cell of the column to be a NSTextFieldCell, when I
click on a cell in that column, - (void)tableView:(NSTableView
*)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn
*) inColumn row:(int) inRow is not invoked.
If I set the data cell of the column to be a subclass of
NSTextFieldCell, when I click on a cell in that column, -
(void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject
forTableColumn:(NSTableColumn *) inColumn row:(int) inRow is invoked.
[...]
OK, this kind of weird behavior actually happens when you call [self
setStringValue:] within the drawInteriorWithFrame of the subclass.
Avoiding to use setStringValue and dealing with the _contents ivar is
solving the problem.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden