• 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
How do I change behavior of NSTableView textDidEndEditing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I change behavior of NSTableView textDidEndEditing


  • Subject: How do I change behavior of NSTableView textDidEndEditing
  • From: Bob Peterson <email@hidden>
  • Date: Thu, 31 Oct 2002 14:06:45 -0500

in NSTableView, I want to cause TAB, ENTER and RETURN to terminate editing, but not open another cell for editing. I don't see any property or delegate method for managing this. Can anyone offer a suggestion how to accomplish it?

My table view's purpose is not to provide editing of the model, but selection of items. I allow some cells to change (for renaming an entry, and to eventually permit clicking a checkbox button cell). hence having the NSTableView open the next cell for editing gets it stuck in data editing mode, which is unpleasant.

I've tried to clear the selection and reselect my row, but it has no effect. (I've allowed the table view to have no rows selected.)
- (void)tableView:(NSTableView*)tableView setObjectValue:(id)value forTableColumn:(NSTableColumn*)tableColumn row:(int)rowIndex
{
...
[myTableView deselectAll:self];
[myTableView selectRow:rowIndex byExtendingSelection:NO];
[myTableView scrollRowToVisible:rowIndex];

The archives and standard knowledge bases have no information, either.

Thanks!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Better random screensaver
  • Next by Date: Re: metallized interface
  • Previous by thread: Re: NSComboBox bug?
  • Next by thread: Re: How do I change behavior of NSTableView textDidEndEditing
  • Index(es):
    • Date
    • Thread