>  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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to