Re: Determining the edited cell from the row and column in a tableview
Re: Determining the edited cell from the row and column in a tableview
- Subject: Re: Determining the edited cell from the row and column in a tableview
- From: daniel <email@hidden>
- Date: Mon, 17 Jan 2005 22:22:31 -0800
While a cell is being edited, its cell is not displayed. The cell you see is the field editor's cell. If that's confusing, you should search for and read up on "field editors" on the Apple site.
One way to do what you want might be to override "windowWillReturnFieldEditor:toObject:" and return an NSTextView that is customized to your liking for the particular object that's being edited.
Daniel
On Jan 17, 2005, at 2:34 PM, Austin Sarner wrote:
I am implementing the TableView delegate method - (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
For the purpose of obtaining the edited cell and setting its text color. Is there a way to return the cell of a TableView from the row and column? I have looked through the docs and have not found anything.
Implementing - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
Is not sufficient, as it does not fire when a cell is being edited.
Thankyou for any nudge in the right direction. _______________________________________________
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
_______________________________________________
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