The following is a guest post by my pal Sascha Fast, with whom I also work on the Zettelkasten Method project. Because of recent events in the Apple app ecosystem, he figured it’s time for uncovering the truth behind popular arguments for subscription-based pricing. So, please warmly welcome Sascha! 👏
Continue reading …
I have no clue why my previous attempts at customizing drawInsertionPoint(in:color:turnedOn:)
always produced visual glitches. I really tried a lot of different ways. But it turns out you don’t have to do that much, really: Adapted to Swift from a Gist by koenbok.
Continue reading …
I couldn’t find a simple answer on the web at first, so here’s my take for Googlers. When you need NSGlyph
(which is a UInt32
), you probably want to use NSATSTypesetter.insertGlyph(_:atGlyphIndex:characterIndex:)
or NSGlyphStorage.insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)
which in turn is implemented by NSLayoutManager
. But the useful glyph types to use like NSControlGlyph
are Int
s. How do you get a NSGlyph
-pointer from these?
Continue reading …