title: Does Interface Builder's new IBDesignable attribute work with NSButton and other controls in Cocoa?
body: <p>I have managed to get the <code>IBDesignable/IBInspectable</code> attributes working with <em>direct</em> subclasses of <code>NSView</code> but not with a direct subclass of <code>NSButton</code>. This is causing me to question if in fact the Cocoa implementation is somehow limited to <code>NSView</code> only.</p>
  
  <p>Almost every example on the web (and <strong>Apple WWDC 2014</strong> Xcode video) use <code>NSView</code> and then drag a custom view component from the library onto the canvas (and then change its class).</p>
  
  <p>Is it possible to use <code>IBDesignable</code> with subclasses of <code>NSControl</code> and <code>NSButton</code> etc...? I have seen many examples on the web using <code>UIButton</code>.</p>
  
  <p>If it is possible, then what are you supposed to drag from the library onto the canvas? It doesn't make sense for it to be a "custom view". On the other hand, there is no "custom control" available.</p>
  
  <p>To be clear, I can get the IBInspectable attribute to show up at design time; but any changes don't seem to live render at design time.</p>
  
  <p>The workaround is to wrap any custom <code>NSButton</code> I want to create within an <code>NSView</code> (via composition) but this seems like a bit of a hack...</p>