title: Creating a checkbox programmatically using Cocoa
body: <p>I need to create a checkbox programmatically in Cocoa and when I try and make a button with <code>buttonType</code> set to <code>NSSwitchButton</code> it displays the title, but does not show the button as a checkbox.  I think I am missing something but I can't find any resources about making things like checkboxes without using the Xcode GUI.</p>