title: Setting a "grandparent" class in Objective C
body: <p>I'm creating multiple different UI subclasses which can be created using <code>JSContext</code>, and I'd like them all to inherit a certain set of methods.</p>
  <p>The classes vary from <code>NSButton</code> to <code>NSTextView</code>. It would be nice to have a single subclass act as <code>NSView</code> parent class, but I can't figure out if this is possible — or how to begin searching.</p>
  <p>For example:</p>
  <pre class="lang-objectivec prettyprint-override"><code>@interface CustomButtonClass : NSButton
  </code></pre>
  <p>I'm looking for a way to make <code>NSButton</code> inherit from a custom <code>NSView</code> subclass.</p>
  <p>Is there a way to go around this, or do I need to create multiple intermediate classes?</p>