Cómo determinar si un usuario se ha desplazado hasta el final de un NSTableView
Tengo un NSTableView y me gustaría saber cuándo el usuario se ha desplazado hacia abajo para poder realizar una acción. ¿No estás seguro de cómo hacer esto?
ACTUALIZACIÓN: Así es como estoy calculando la parte inferior de la tabla:
-(void)tableViewDidScroll:(CPNotification) notification
{
var scrollView = [notification object];
var currentPosition = CGRectGetMaxY([scrollView visibleRect]);
var tableViewHeight = [messagesTableView bounds].size.height - 100;
//console.log("TableView Height: " + tableViewHeight);
//console.log("Current Position: " + currentPosition);
if (currentPosition > tableViewHeight - 100)
{
console.log("we're at the bottom!");
}
}