可以将单元格不是文本单元格而是nstablecellview的NSTableView绑定到NSArraycontroller吗?我是可可编程的新手,试着在上面搜索,但没有适当的解释。
发布于 2012-12-27 11:47:37
是的,这是可能的。您可以将NSTableView设置为基于视图。使用objectValue.propertyName将单元格UI元素(例如NSTextField)绑定到“表格单元格视图”,而不是绑定到列
参考:http://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/TableView/PopulatingViewTablesWithBindings/PopulatingView-TablesWithBindings.html
http://www.raywenderlich.com/21752/how-to-use-cocoa-bindings-and-core-data-in-a-mac-app
https://stackoverflow.com/questions/14038426
复制相似问题