PXListView icon indicating copy to clipboard operation
PXListView copied to clipboard

listView:heightOfRow: is called a gazillion times

Open ziofil opened this issue 10 years ago • 2 comments

Even with a modest number of rows (< 100) I get thousands of calls when scrolling, or even by just resizing the window without scrolling when usingLiveResize is set to YES. Is that the intended behavior or am I doing something wrong?

ziofil avatar Dec 12 '14 07:12 ziofil

@ziofil Hmm, I can't say I've seen that before myself. Do you have any particular steps to repro? What version of OS X are you seeing it on?

alexrozanski avatar Dec 21 '14 20:12 alexrozanski

Yosemite 10.10.1 and Xcode 6.1.1 I did a bit of NSLogging to backtrack the calls to listView:heightOfRow: and I found that the vast majority of them comes from countless calls to extendedRange: (which calls rectOfRow: which in turn calls listView:heightOfRow:) The only other thing that might be worth mentioning is that since I'm using ARC, I removed all the explicit calls to dealloc and autorelease. Does this help?

ziofil avatar Dec 25 '14 18:12 ziofil