FROM : I. Savant
DATE : Sat May 31 22:31:10 2008
> The problem is, I don't know how to determine to which row that
> newly-added object corresponds in the table view.
If you're targeting Leopard, you can force the tree controller to -
fetch: (so it's updated) then I believe you can ask the outline view
for its -rowForItem: ... if you're targeting Tiger, it's not as
straightforward due to proxy objects.
> I suppose it's the current-selected row, since it's set up to select
> on add.
That's one way, so long as you force a fetch first.
--
I.S.
DATE : Sat May 31 22:31:10 2008
> The problem is, I don't know how to determine to which row that
> newly-added object corresponds in the table view.
If you're targeting Leopard, you can force the tree controller to -
fetch: (so it's updated) then I believe you can ask the outline view
for its -rowForItem: ... if you're targeting Tiger, it's not as
straightforward due to proxy objects.
> I suppose it's the current-selected row, since it's set up to select
> on add.
That's one way, so long as you force a fetch first.
--
I.S.
| Related mails | Author | Date |
|---|---|---|
| Rick Mann | May 31, 10:27 | |
| I. Savant | May 31, 16:34 | |
| Rick Mann | May 31, 22:21 | |
| I. Savant | May 31, 22:31 | |
| Jonathan Dann | May 31, 22:35 | |
| Rick Mann | May 31, 22:35 | |
| Rick Mann | May 31, 23:39 | |
| Rick Mann | Jun 4, 05:15 | |
| Rick Mann | Jun 4, 05:22 |






Cocoa mail archive

