1. Changing the Background Colour A simple thing to do in iOS is to change the background colour of a view but in macOS you need to first tell the view you want the layer and then reference the layer. And finally you need to pass it a CGColor rather than an NSColor. 2. NSTextView NSTextView and the way it interacts with NSScrollView is a whole can of worms that I'm working on getting my head around. But one of the first hurdles is that if you are working with the component parts: NSLayoutManager, NSTextContainer and NSTextStorage – then you must retain a reference to the text store for it to work as expected. Follow @sketchytech
Technology tips for writers, editors, designers, illustrators, programmers and publishers, and now Retro Gamers.