Hello to the list !
Request for help regarding a little problem.
So I have this piece of code:
- (IBAction)addNewItem:(id)sender
{
if ([lsOutlineView selectedRow] < 0)
{
[sourceListLevelZero addObject:[Parent new]];
[lsOutlineView reloadItem:nil reloadChildren:YES];
[lsOutlineView expandItem:nil expandChildren:YES];
[lsOutlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:
[lsOutlineView rowForItem:[Parent new]]] byExtendingSelection:NO];
}
...
}
It is the last line that trouble's me.
It should select newly added item in the list (right ?), but it does
not !
Or am I doing something wrong (very likely !) ?
Ok, so you got it by now that I am trying to get the behavior that
when user clicks add button new item that appears in the list
automatically gets selected.
Thanks for help
Bye
Mario Kušnjer
mario.kusn...@sb.t-com.hr
+385957051982
mariokusn...@skype
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com