I want to get the top visible row (not the top row) of a NSTableView. There seems to be no method for this. Is this even possible?
Thank
You can do this using:
NSRect rect = [tableView visibleRect];
NSRange rows = [tableView rowsInRect:rect];
NSInteger firstVisibleRowIndex = rows.location;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.