[squeak-dev] The Trunk: Morphic-nice.737.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 21 22:39:55 UTC 2014


Nicolas Cellier uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-nice.737.mcz

==================== Summary ====================

Name: Morphic-nice.737
Author: nice
Time: 22 July 2014, 12:37:58.663 am
UUID: 36edbbab-6105-4f4c-9b0e-c415ed7749f9
Ancestors: Morphic-nice.736

Remove another bit of Read/Write madness.
There is NO reason why a text selection stream should be Read/Write.
As the comment says, the intention is to answer a ReadStream and each and every usage will be that of a ReadStream.
If ever some edition has to happen on the selection, it won't be thru the selectionAsStream, no never. It will be thru another channel, the editor itself (see compile:notifying:)

=============== Diff against Morphic-nice.736 ===============

Item was changed:
  ----- Method: TextEditor>>selectionAsStream (in category 'accessing-selection') -----
  selectionAsStream
  	"Answer a ReadStream on the text in the paragraph that is currently  selected."
  
+ 	^ReadStream
- 	^ReadWriteStream
  		on: paragraph string
  		from: self startIndex
  		to: self stopIndex - 1!



More information about the Squeak-dev mailing list