Again me !
Just a little update !
I packed previous code in combined message calls.
Here's how it looks now:
if ([lsOutlineView selectedRow] < 0)
{
Parent *parent = [Parent new]; <--- create new Parent
object
[sourceListLevelZero addObject:parent]; <--- add newly created
Parent object to root array
[lsOutlineView reloadItem:nil reloadChildren:YES];
[lsOutlineView expandItem:nil expandChildren:YES];
[lsOutlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:
[lsOutlineView rowForItem:parent]] byExtendingSelection:NO]; <---
select row according to index from indexSet created with row index of
outline view for item - parent
[parent release]; <--- release Parent object
}
Again this works fine.
Ok, that's it.
Bye !
Mario Kušnjer
[email protected]
+385957051982
mariokusn...@skype
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]