Subclassing an NSTextField
问题 Given all the complex things I seem to cover every day, this appears to be a "what the heck am I doing wrong that seems to simple?" scenario! I would like to subclass an NSTextField to change the background color and text color. For simplicity sake (and to help anyone who hasn't ever subclassed anything before), here is the example of my (simplified) subclass MyNSTextFieldSubclass ... Step 1: Create the subclass file: First the header file @interface MyTextFieldSubclass : NSTextField { } @end