• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question on NSTableViewDataSource Protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Question on NSTableViewDataSource Protocol (From: Varun Chandramohan <email@hidden>)
 >Re: Question on NSTableViewDataSource Protocol (From: Graham Cox <email@hidden>)
 >Re: Question on NSTableViewDataSource Protocol (From: Varun Chandramohan <email@hidden>)

  • Prev by Date: Re: Core Data migration and non-optional transient relationships
  • Next by Date: Re: kCGStatusWindowLevel
  • Previous by thread: Re: Question on NSTableViewDataSource Protocol
  • Next by thread: where to put persistent storage for command-line app
  • Index(es):
    • Date
    • Thread