NSPopupButtonCells expect the menu item index to be the object value so do that
Merge pull request #22 from RobotsAndPencils/FixPopupButtons

NSPopupButtonCells expect the menu item index to be the object value so do that