Last active
September 6, 2019 20:14
-
-
Save edcrypt/2789458f029c5828607e2cecdf407754 to your computer and use it in GitHub Desktop.
Bloc's Rope data structure usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| text | | |
[ | |
EpMonitor current disable. | |
Metacello new | |
baseline: 'Bloc'; | |
repository: 'github://feenkcom/Bloc/src'; | |
load: 'Bloc-Text-Rope' | |
] ensure: [ EpMonitor current enable ]. | |
text := 'test test test' asRopedText. | |
text | |
when: BlTextStringInserted | |
do: [ Transcript clear; | |
show: text asString ]; | |
insertText: 'foo ' asRopedText at: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment