title: NSTextField Subclass Crashes on setLineBreakMode: method
body: <p>I have a subclass of NSTextField and I setting the LineBreakMode.</p>
  
  <p>It works fine under my mac with Yosemite 
  and Crashes for one of my users on Mavericks</p>
  
  <p><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[XTextField setLineBreakMode:]: unrecognized selector sent to instance 0x7fc784548ad0'</code></p>
  
  <p>How could I work this round ?</p>
  
  <p>Header File of the subclass</p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  
  @interface XTextField : NSTextField
  
  - (void)setText:(NSString *)text
  
  @end
  </code></pre>
  
  <p>Implementation</p>
  
  <pre><code>#import "XTextField.h"
  @implementation XTextField
  
  - (void)setText:(NSString *)text
  {
      if (text)
      {
          [self setStringValue:text];
      }
      else
      {
          [self setStringValue:@""];
      }
   }
  
  
   - (instancetype)initWithFrame:(NSrect)frame
   {
       if(self = [super initWithFrame:frame])
       {
           [self setEditable:NO];
           [self setSelectable:NO];
           [self setDrawsBackGround:NO];
           [self setBezeled:NO];
       }
       return self;
   }
   @end
  </code></pre>
  
  <p>Calling code:</p>
  
  <pre><code>XTextField* myLabel = [[XTextField alloc]initWithFrame:myFrame];
  [myLabel settext:@"text text text"];
  [myLabel setLineBreakMode:NSLineBreakByTruncatingTail];
  </code></pre>