title: NSTextField - Subclassing & drawRect cause text not to load
body: <p>Trying to round out the border of an NSTextField (the little black box in the upper-left corner): <a href="http://cl.ly/image/2V2L1u3b3u0G" rel="nofollow">http://cl.ly/image/2V2L1u3b3u0G</a></p>
  
  <p>So I subclassed NSTextField:</p>
  
  <p>MYTextField.h</p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  @interface HATrackCounterField : NSTextField
  @end
  </code></pre>
  
  <p>MYTextField.m</p>
  
  <pre><code>#import "HATrackCounterField.h"
  @implementation HATrackCounterField
  - (id)initWithFrame:(NSRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {}
      return self;
  }
  
  - (void)drawRect:(NSRect)dirtyRect
  {
      [[NSColor blackColor] setFill];
      [[NSBezierPath bezierPathWithRoundedRect:dirtyRect xRadius:3.0 yRadius:3.0] fill];
  }
  
  @end
  </code></pre>
  
  <p>Now its not showing the text-field text: <a href="http://cl.ly/image/1J2W3K431C04" rel="nofollow">http://cl.ly/image/1J2W3K431C04</a></p>
  
  <p>I'm new at objective-c, it seems like this should be easy, so I'm probably just doing something wrong...</p>
  
  <p>Thanks!</p>
  
  <p>Note: I'm setting the text through a collection view, and I've tried <code>setStringValue:</code> at different points also to no avail.</p>