   override func drawRect(rect: CGRect) {
     if shouldShowLineNumbers {
       drawLineNumberBackground()
-      drawLineNumbers()
+      drawLineNumbers(rect)
     }
     super.drawRect(rect)
   }


class EditorTextView: UITextView {
  var shouldShowLineNumbers = false
  var textAttributes = Dictionary<NSObject, AnyObject>()
  var numberOfCharactersInLineNumberGutter = 0
  var lineNumberWidth = CGFloat(20.0)
  var currentDragView:UIView? = nil

          LineNumberString.drawAtPoint(Point, withAttributes: textAttributes)
        }
    }
    layoutManager.enumerateLineFragmentsForGlyphRange(glyphsToShow,
      usingBlock: lineFragmentClosure)
  }
  
