NSTableView with custom cells

后端 未结 3 2011
你的背包
你的背包 2020-12-13 10:45

it seems I\'ve been searching for a long time and haven\'t found a great, easy, answer to my problem.

I\'m using XCode with Cocoa/ObjC and am trying to create an NST

3条回答
  •  清歌不尽
    2020-12-13 11:31

    A cell can only hold one object value at a time. Make a model object with the image and string/attributed string as properties, and populate the table view with that.

    Also, a text field is a view. Your model should know nothing of its presentation—that's your views' job.

提交回复
热议问题