My Favourite macOS Development Bugs


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.


Comments

  1. Your thinking toward the respective issue is awesome also the idea behind the blog is very interesting which would bring a new evolution in respective field. Thanks for sharing.


    Back to Original Services Private Limited

    ReplyDelete

Post a Comment