3 ms·
Depends on what you call “similar”. They’ll have storage, layout, a part of the layout that’s visible, etc, but they may not separate them that clearly, and won
by Someone 3y ago
Depends on what you call “similar”. They’ll have storage, layout, a part of the layout that’s visible, etc, but they may not separate them that clearly, and won’t have that rich an API. TextView is way more flexible than what the typical _text_ editor needs. Text editors typically don’t need multiple fonts, multiple font sizes, varying line spacing, paragraph indents, proportional fonts, right-aligning or decimal tabs, images inside text, etc.
All those features make TextView relatively slow and memory hungry. Because of that, I don’t think _text_ editors that handle multi-megabyte files will use a single NSAttributedString to store the entire document’s text.
- papereditor 3y agoYep. TextView is a beast. For multi-megabyte files I always use Sublime.
- kccqzy 3y agoAnd for multi-gigabyte files I use HexFiend.
- KerrAvon 3y agoBBEdit is more Mac-like than Sublime and handles multi-gig files with ease.
- papereditor 3y agoIndeed, there are a handful of those dev-oriented editors that crunch through mega files with ease. No idea why I prefer Sublime. :D