• 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: nstableview reload with animation possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nstableview reload with animation possible?


  • Subject: Re: nstableview reload with animation possible?
  • From: "Rick C." <email@hidden>
  • Date: Tue, 19 Jun 2012 08:26:20 +0800

Thanks I will take a look!


On Jun 19, 2012, at 3:59 AM, Marc Respass wrote:

>> What I'm basically trying to do is call reloadData but with animation and I can't see how to do it?  I know about removing/inserting rows with animation and I tried this, but I keep crashing and I would think it's because I'm removing rows and inserting rows after my datasource has been modified.  That's why normally I use reloadData and it works fine.  Also, it seems there is a method to do this in iOS but it's not available on Mac.  So is it possible to do this?  Or can I only use the animation when removing inserting rows without changing the modifying the datasource?  Thanks,
>>
> Hi Rick,
>
> You probably want
> - (void)reloadDataForRowIndexes:(NSIndexSet *)rowIndexes columnIndexes:(NSIndexSet *)columnIndexes NS_AVAILABLE_MAC(10_6);
>
> In my app, I use it to update rows which get updated one at a time but you can provide an index set with many rows. You might be able to use -rowsInRect which I haven't used passing the rect of the table view's scroll view, I would think. Then you can create the index set with -indexSetWithIndexesInRange:
>
> Hope this helps
> Marc
>
> _______________________________________________
>
> 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


_______________________________________________

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

  • Follow-Ups:
    • Re: nstableview reload with animation possible?
      • From: Corbin Dunn <email@hidden>
References: 
 >Re: nstableview reload with animation possible? (From: Marc Respass <email@hidden>)

  • Prev by Date: Re: A color well in a table view?
  • Next by Date: Re: Applescript to ObjC program communications?
  • Previous by thread: Re: nstableview reload with animation possible?
  • Next by thread: Re: nstableview reload with animation possible?
  • Index(es):
    • Date
    • Thread