• 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: Where to noteHeightOfRowsWithIndexesChanged
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to noteHeightOfRowsWithIndexesChanged


  • Subject: Re: Where to noteHeightOfRowsWithIndexesChanged
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 15 Jun 2010 10:51:11 -0700

On 2010 Jun 15, at 04:26, Tony P wrote:

> I've not found a good place to put noteHeightOfRowsWithIndexesChanged. I get either overlapping rows or some blank rows during scroll. ...  Any ideas anyone?

I send noteHeightOfRowsWithIndexesChanged: after updating the contents of the array controller to which a table is bound, but I still see little artifacts sometimes.  It's in a rarely-used utility view so I've let it slide.  But under the conditions you've mentioned,

> There are usually about 200,000 rows, so calculating the actual height for all rows is not an option (since it takes about 19 seconds).

you may have exceeded the capabilities of NSTableView's variable heights.  Possibly NSTableView needs to know the height of all preceding rows in order to calculate the position of a given row?  You may need to compromise your requirements, or else consider making your own custom view which can "draw smarter".  But this may not be practical since NSTableView provides a *lot* of behavior you might still need, meaning you'd be discovering little issues and writing code for weeks.

_______________________________________________

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: Where to noteHeightOfRowsWithIndexesChanged
      • From: Jens Alfke <email@hidden>
References: 
 >Where to noteHeightOfRowsWithIndexesChanged (From: Tony P <email@hidden>)

  • Prev by Date: Re: How to Access iPhoto,iTunes and iMove Playlist Information
  • Next by Date: Re: Where to noteHeightOfRowsWithIndexesChanged
  • Previous by thread: Where to noteHeightOfRowsWithIndexesChanged
  • Next by thread: Re: Where to noteHeightOfRowsWithIndexesChanged
  • Index(es):
    • Date
    • Thread