News for hackers. Stuff that matters.
Re:Nerdy internals of an Apple text editor by userbinator on Tuesday March 05, 2024 @10:55PM (#39612115)
The TextEdit app consists almost entirely of a single TextView

I believe WordPad is the Windows equivalent, based on the RichEdit control.

Another fun fact is that RTF is basically the serialized form of NSAttributedString.

The same is true of Windows' RichEdit control. In fact, it looks like Windows' implementation came first: https://en.wikipedia.org/wiki/Rich_Text_Format

Re:Nerdy internals of an Apple text editor by papereditor on Wednesday March 06, 2024 @04:25AM (#39613998)
Interesting facts!