Hi krzyzanowskim,
Thanks for posting this. I was struggling to make the right associations between the notions of text storage vs. layout fragments, redraw notifications, etc., and also hadn't thought of using an NSRulerView for the numbers. Your approach here is much more concise and easy to implement than the one I was pursuing, and provided a lot of clarity.