I'm now using the patch attached. Why the window pointer  is needed in EmacsScroller at all escapes me, ATM. Someone who knows nsterm.c should probably check if it is needed.