• 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: un-selecting the rows from a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: un-selecting the rows from a table


  • Subject: Re: un-selecting the rows from a table
  • From: AndrĂ©as Saudemont <email@hidden>
  • Date: Thu, 30 Sep 2004 09:46:42 +0200

Chad,

> I've selected and edited a table's row (which has a single column) by
> using selectRow (or selectedRowIndexes for Mac OS 10.3) and editColumn.
>   However, after I have made my changes and pressed Enter, the next row
> is selected for editing.  I want to stop editing and unhighlight the
> table.  I've tried calling deselectAll to my table, but that doesn't
> work.  Any ideas on what I need to do to tell my table to stop editing?

You'll have to create a subclass of NSTableView and overwrite the
textDidEndEditing: delegate method.

See the documentation for textDidEndEditing: in NSTableView and
listing 2, "Forcing the end of editing" at:

http://developer.apple.com/documentation/Cocoa/Conceptual/TextEditing/Tasks/BatchEditing.html

Hope this helps,

Andréas
 _______________________________________________
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: 
 >un-selecting the rows from a table (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Equivelent to drawRect: for drawing after sub views are drawn
  • Next by Date: [ANN] QuickLite 1.5 is available
  • Previous by thread: un-selecting the rows from a table
  • Next by thread: linking to private frameworks
  • Index(es):
    • Date
    • Thread