title: Customizing borderless NSButton behavior when clicked?
body: <p>I have a borderless <code>NSButton</code>(more or less a <code>NSTextField</code> with an action) that I would like to behave like an "image-based" button, i.e. I would like the button text to change color when passed over with a mouse and when clicked. Is there an easy way to achieve that ?</p>
  
  <p>Here is my button initialization context : </p>
  
  <pre><code>    NSButton* but =[[NSButton alloc] initWithFrame:NSMakeRect(5, 5, 125, 25)] ;
      [but setTitle:@"Do not show Again"];
      [but setButtonType:NSMomentaryLightButton]; //I figure it could be here
      [but setBezelStyle:NSHelpButtonBezelStyle];
      [but setBordered:NO];
      [but setAction:@selector(writeToUserDefaults)];
      [but setFont:[NSFont fontWithName:@"Arial" size:9.0]];
      [self.view addSubview:but];
  </code></pre>
  
  <p>Source that didn't work : <a href="https://stackoverflow.com/questions/3797640/borderless-nsbutton-turns-gray-when-clicked">Borderless NSButton Turns Gray</a></p>
  
  <p>What are my solution (besides subclassing NSButton ?)</p>