• 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
NSTableView return key and editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView return key and editing


  • Subject: NSTableView return key and editing
  • From: Christopher Corbell <email@hidden>
  • Date: Thu, 22 May 2003 18:07:38 -0700

How does one cleverly defeat the continuation of editing items
that NSTableView implements with the return key?

With an editable, single-column table, if you edit an item and
hit return, NSTableView then automatically causes the item below
it to become open for editing. I do not want this to happen, but
trying to defeat it with from the delegate shouldEditTableColumn:
doesn't work - if I say no, I get another editColumn: invocation;
if I say no twice, I get a third! It won't give up.

I've put in a one-shot timer that aborts editing after a short time but this
seems like an inelegant solution.

(UI note: my table is sorted alphabetically like the Finder, so
when the user changes the name of an item it can trigger a
re-sort of the list. This is one major reason why the return-key,
spreadsheet-like editing behavior isn't wanted.)

Thanks for any help,
Christopher
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTableView return key and editing
      • From: Just van Rossum <email@hidden>
    • Re: NSTableView return key and editing
      • From: Pete Yandell <email@hidden>
  • Prev by Date: Memory management for bridging code
  • Next by Date: CustomizeToolbar and First Responder
  • Previous by thread: Memory management for bridging code
  • Next by thread: Re: NSTableView return key and editing
  • Index(es):
    • Date
    • Thread