Re: Question on NSTableViewDataSource Protocol
Re: Question on NSTableViewDataSource Protocol
- Subject: Re: Question on NSTableViewDataSource Protocol
- From: Jerry Krinock <email@hidden>
- Date: Tue, 20 May 2014 11:00:30 -0700
On 2014 May 18, at 14:38, Varun Chandramohan <email@hidden> wrote:
> so lets say I avoid [_tableContents removeAllObjects]
Indeed. I think that the vote in this thread is now about 6 to 0 *against* using -removeAllObjects :)
> Could I do something like this before removing the objects? [ltableView removeRowsAtIndexes:indexes
> withAnimation:NSTableViewAnimationSlideDown];
You don’t need to worry about table rows, Varun. Remove the row from the data model / data source, then invoke -[NSTableView reloadData] which will propagate the change into the table. Table view data sources are wonderful.
_______________________________________________
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