Dave,
Itai Ferber also suggested this fix, and previously I had tried it to
no avail. However, the problem turned out to be where I put these
lines (and a couple of others) in my code. After much fiddling, I
finally got things right! Thanks for taking time to post the
suggestion.
Boy
How about this?
NSInteger index = [myOutlineView rowForItem:itemToSelect];
NSIndexSet * indexSet = [NSIndexSet indexSetWithIndex:index];
[myOutlineView selectRowIndexes:indexSet byExtendingSelection:NO];
HTH,
Dave
On Nov 25, 2009, at 4:48 PM, Boyd Collier wrote:
> Mario Kušnjer's question remi
Mario Kušnjer's question reminded me of a question that I've been
pondering about NSOutlineViews, namely, is there a way to have one
item on the outline initialized in the selected state when the outline
is first created? That is, when the window containing the outline is
first displayed t