@interface CocoaRadioButton : NSButton { @public phoenix::RadioButton* radioButton; } -(id) initWith:(phoenix::RadioButton&)radioButton; -(IBAction) activate:(id)sender; @end namespace phoenix { struct pRadioButton : public pWidget { RadioButton& radioButton; CocoaRadioButton* cocoaRadioButton = nullptr; bool checked(); Size minimumSize(); void setChecked(); void setGeometry(const Geometry& geometry); void setGroup(const group& group); void setText(const string& text); pRadioButton(RadioButton& radioButton) : pWidget(radioButton), radioButton(radioButton) {} void constructor(); void destructor(); }; }