How should I do with tableview ?
How should I do with tableview ?
- Subject: How should I do with tableview ?
- From: Francis Derive <email@hidden>
- Date: Thu, 26 May 2005 14:55:20 +0200
Dear all,
I am satisfied to have a solution, but I would like to know the whole truth - may you help.
On the need to authorize the leave of the edition of an "element" of a tableView only but when the edited value is different from say "zero" - you understand that I will be exercising for still a big while -, I went to implement the delegate method selectionShouldChangeInTableView:
From a NSTableView object, I was able to get the column of interest, the selected row, and then I had discovered this brilliant NSTableView's method - editColumn:row:withEvent:nil select:YES, which successfully prevents from leaving the editing of a cell as long its content remains unsatisfactory. This is what I want to do, bravo.
But, what about the thorough understanding of the Cocoa graphical interface architecture I whish to grasp for some day ? Is it possible, does it make sense, in the context of an NSTableView object, to say : from the NSTableView object, I get a "cell", and if the content of the cell is unsatisfactory I make this very current cell as the current cell's nextKewView. Something like that :
NSView *currentCell = (NSView *)[theTableViewColumn dataCellForRow:theRow];
[currentCell setNextKeyView:currentCell];
That doesn't make it. Is there anything else to consider - or do I have to forget it ?
Merci beaucoup.
Francis Derive
9 Allée de la Butte Rouge
91000 Evry France
_______________________________________________
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