ios - How to add custom class as datasource and delegate to a NSTableView -
i writing application osx in swift. use nstableview. created custom class implements nstableviewdatasource , nstableviewdelegate. mark custom class delegate , datasource of tableview but, can’t find how that.
the way found out : create un ojbect in interface builder. add in view put custom class class of object. , link object datasource , delegate of tableview.
this way doesn’t seem clean. have idea solve problem ?
create instance of custom class implements protocols have nstableview. set delegate , datasource properties instance created
Comments
Post a Comment