Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange table view need... howto sensibly?



On Tuesday, July 30, 2002, at 12:36 PM, Ondra Cada wrote:
Now, here I don't know howto! Perhaps frameOfCellAtColumn:row: might be
useable to check whether a row is visible, and perhaps I might use
tableView:willDisplayCell:forTableColumn:row: to determine whether the
table is scrolling (for when scrolling ends, I'd have to invalidate the
table, so as the possible "ditto" value which might happened to be
scrolled into the topmost line from below is redrawn)... but it looks like
an *extraordinarily* clumsy way...

Has anyone a better idea howto? Thanks,

You could use the following to determine the top displayed row:
[tableView rowAtPoint:NSMakePoint(0,NSMinY([tableView visibleRect]))];

Perhaps an overload of the table view's scroll view's reflectScrolledClipView: could signal your controller to revalidate the first row.

Daryn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Strange table view need... howto sensibly? (From: Ondra Cada <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.