title: Change background colour of NSTextView's default top ruler
body: <p>By default, if you add a NSTextView to an application and go to Format -> Text -> Show Ruler, a ruler will be shown on top of the text view like in TextEdit with various formatting options, and will look like so:</p>
  
  <p><img src="https://i.stack.imgur.com/HEQpr.png" alt="YES LIKE THIS"></p>
  
  <p>How would I go about changing the background colour of that ruler? (The ruler should also be there on 10.6, maybe even earlier)</p>
  
  <p>Thanks for any hints/suggestions!</p>
  
  <p><strong>EDIT ONE:</strong> After stabbing around a bit what a call to <code>description</code> on the ruler and what it's subviews are, I came to these results:</p>
  
  <pre><code>Description of ruler: &lt;NSRulerView: 0x10056e580&gt;
          Orientation: horizontal, Rule thickness: 16.0
          Flipped: Yes, frame: {{0.0, 0.0}, {528.0, 55.0}}, bounds: {{0.0, 0.0}, {528.0, 55.0}}
          Accessory frame: {{0.0, 0.0}, {528.0, 24.0}}
  Ruler's Subviews: (
      "&lt;NSStopTouchingMeBox: 0x10059b940&gt;"
  )
  </code></pre>
  
  <p>That's a pretty interesting class name, isn't it? =P</p>