Interesting, so lets say I avoid [_tableContents removeAllObjects] but I have to change the data source, may be add new entry or remove 1 entry. What will be the difference between removing 1 entry and all entry(objects) from the source? I mean, what can I do to remove an entry which may be a valid row in table code? Could I do something like this before removing the objects? [ltableView removeRowsAtIndexes:indexes withAnimation:NSTableViewAnimationSlideDown];
Regards, Varun On 16/05/2014 4:45 pm, "Graham Cox" <graham....@bigpond.com> wrote: > >On 16 May 2014, at 11:18 am, Varun Chandramohan ><varun.chandramo...@wontok.com> wrote: > >> [_tableContents removeAllObjects]; > > >I wouldn't do this, because it invalidates the value of 'row', which may >be assumed by the table code to remain valid. Implementation details may >change on different systems, and so this might be OK on 10.9, but fail on >earlier. The assertion seems definitely to do with an invalid row index. > >--Graham > > _______________________________________________ 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