Example NSTextView subclass for programmatic modification