I am trying to change the background color of my View. The View Controller class is NSViewController type.
NSViewController
How this can be done? In iOS UIKit (UIView
UIView
Careful: calling setLayer: or setWantsLayer: breaks any WebViews you might have in your application in very creative ways! (Even in different windows...)
Please see this answer here Best way to change the background color for an NSView.