title: How to determine if an NSButton is a checkbox?
body: <p>In Interface Builder you can set the style of a button to "Check" to turn it into a checkbox, and you can set the style of a button in code using NSButton's <code>setButtonStyle:</code> method, but how can I determine at runtime whether a particular <code>NSButton</code> is a checkbox (or radio button, or regular push button, etc)?</p>
  
  <p>Part of the project I am working on requires loading views from other bundles and there is special behaviour required for each checkbox (these bundles are from 3rd parties).</p>