Re: Editing NSOutlineView Group Item
Re: Editing NSOutlineView Group Item
- Subject: Re: Editing NSOutlineView Group Item
- From: Quincey Morris <email@hidden>
- Date: Tue, 04 Nov 2014 19:21:17 +0000
> I have 2 items in my outline view - if I select, edit and then try to reload the item at index=1.
Here is new information. What does “edit” mean? Are you talking about editing the text in the row in the outline view, or editing properties of the object represented by the row elsewhere in the window, which imply a change in its item’s appearance in the outline view?
One thing you could try, just before you invoke ‘reloadItem:’, is to log the items in the view. That is, loop over the view’s row by rowIndex, fetching the item for each row, and logging the item pointer and description. (This will not log rows in collapsed parents, of course, but that’s part of the point.) Then check to make sure the item you’re selecting is in this list.
If, for some reason, editing causes the identity of the item to change, then I’d expect to see failures like you’re getting.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden