Re: Background color on NSView?
Gary L. Wade
No, I'm not talking about subclassing NSView. I'm talking about writing two category methods in Objective-C, setBackgroundColor: and backgroundColor. In Swift, you'd call a category an extension. With the setter and getter, you don't need your pBackgroundColor object; just use the backgroundColor property on the layer. You might try an Internet search on NSView backgroundColor category if you're not familiar yet with the concept.
toggle quoted messageShow quoted text
-- Gary L. Wade http://www.garywade.com/
On Aug 29, 2017, at 9:22 AM, Dave <dave@...> wrote:
|
|