--- a/TextView.st Thu Sep 01 12:31:56 2016 +0200
+++ b/TextView.st Wed Sep 07 15:00:03 2016 +0200
@@ -178,8 +178,25 @@
EditTextView openOn:'Makefile'
[exEnd]
+
+ configuring the TextView to NOT expand tabs and scan for special lines
+ (to avoid reading all lines, when usig a virtualArray)
+ [exBegin]
+ |a m|
+
+ a := VirtualArray new
+ setSize:100000000;
+ generator:[:lNr | Transcript show:'called for '; showCR:lNr.
+ 'this is line: ',lNr printString ].
+ m := a asValue.
+ (ScrollableView forView:TextView new)
+ expandTabsWhenUpdating:false;
+ checkLineEndConventionWhenUpdating:false;
+ model:m;
+ open; inspect.
+ [exEnd]
+
"
-
! !
!TextView class methodsFor:'instance creation'!