Live data from Hacker News

Nerdy internals of an Apple text editor

papereditor.app

41–50 of 93 posts

Re: Nerdy internals of an Apple text editor

#43

I'm a little confused at the part about decorative attributes being done outside of the editing transaction, saying "And they are not even aware of the transaction since they live in the NSLayoutManager itself, not in NSTextStorage". Decorative attributes like color do normally live in the NSTextStorage! Is the author implying that the colors applied to markdown characters are being done with NSLayoutManager's tempor…

Yes. NSTextStorage can also contain the same attributes as the temporary attributes (rendering attributes in TextKit 2).

The benefit of using temporary attributes is that changing them is very fast compared to invoking the full transaction on NSTextStorage. For example, switching between Light/Dark modes is very fast in Paper.

Re: Nerdy internals of an Apple text editor

#47

The author did a great job using images to convey the various concerns each piece of code in the API is responsible for. Also super great detail in the writing. Nice work! This feels like a technical-first article that also happens to generate goodwill for the product, as opposed to a marketing-first technical article that serves up the bare minimum of insights.

Thanks!

Yep, it's a win-win. A good resource plus a bit of marketing for the product.

Re: Nerdy internals of an Apple text editor

#49

This is amazing content marketing. Developers are an obvious target niche for such a product. Exposing internals of the software in a way HNers enjoy sounds like a great idea, would love to see if it worked as a traction experiment.

Last time (https://news.ycombinator.com/item?id=38866170) there was a small spike in sales, but no lasting effect.

I would not say that developers are the target niche. The best customers are professional writers who use a ton of writing apps for different occasions.

Post reply on HN