3 ms·
"Something as simple as setting the background color for an NSView is far more of a ritual than it is for a UIView." Or you just use an NSBox as the rearmost s
by jonhendry18 8y ago
"Something as simple as setting the background color for an NSView is far more of a ritual than it is for a UIView."
Or you just use an NSBox as the rearmost subview of the NSView, and set its fill color.
- wingerlang 8y agoI suspect that is exactly the kind of ritual he was talking about.
- Klonoar 8y agoYuuuuup. Cocoa developers tend to think it's all very apparent though. Was actually counting down until a comment like that appeared. ¯\_(ツ)_/¯
- jonhendry18 8y agoNot much of a ritual, really. Couple lines of code. Just a common case of using a UI widget in a way that isn't really done on UIKit.
- Klonoar 8y agoSo is the half-assed approach of working with the layer background. ;P That's what a ritual is; it's 2018 and I should not have to go out of my way to set a damn background color on a view. UIView has predictable behavior, AppKit does not.