• 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
Sorting a TableView in tableView:setObjectValue:forTableColumn:row:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting a TableView in tableView:setObjectValue:forTableColumn:row:


  • Subject: Sorting a TableView in tableView:setObjectValue:forTableColumn:row:
  • From: Andreas Mayer <email@hidden>
  • Date: Sat, 12 Oct 2002 04:07:50 +0200

Hi all.

I have a table view with sorted rows. When a cell in my key column is changed, I re-sort my data source and reload the table.

The problem is, that the wrong row (and cell to edit) is selected afterwards.

Can anyone give ma a hint how to solve this?

Changing the selection in tableView:setObjectValue:forTableColumn:row: does not work.
Since this is called from textDidEndEditing: I assume I could replace that one. But I'd rather avoid rewriting that code (selecting the next cell according to the way editing ended and all that).


(Besides that I have still no solution to my problem with the serial port (/dev/cu.modem etc.) not closing properly ... :( )


bye. Andreas.
_______________________________________________
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: Sorting a TableView in tableView:setObjectValue:forTableColumn:row:
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Seattle??? [was Re: Toronto cocoa programmers?]
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Re: NSUndoManager in a multiwindow document
  • Next by thread: Re: Sorting a TableView in tableView:setObjectValue:forTableColumn:row:
  • Index(es):
    • Date
    • Thread