• 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
Re: Determining the edited cell from the row and column in a tableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Determining the edited cell from the row and column in a tableview (From: Austin Sarner <email@hidden>)

  • Prev by Date: how to save and restore the file in cvs, with original information?
  • Next by Date: Re: Determining if it is the first time the application has launched?
  • Previous by thread: Determining the edited cell from the row and column in a tableview
  • Next by thread: NibTool Usage
  • Index(es):
    • Date
    • Thread