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

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -