开发者

Problem retrieving NSCell data via [NSTableColumn dataCellForRow]

开发者 https://www.devze.com 2023-01-23 16:21 出处:网络
I am trying to retrieve a specific NSCell 开发者_StackOverflowdata from an NSTableView through [NSTableColumn dataCellForRow] but every time it shows different value for same row and same column. The

I am trying to retrieve a specific NSCell 开发者_StackOverflowdata from an NSTableView through [NSTableColumn dataCellForRow] but every time it shows different value for same row and same column. The data source remains the same at all time. The NSTableView is bound to an NSArrayController .Please if anyone can suggest a better way to do it correctly. And I don't want to implement those delegate methods. Let me know if you require more information.

Regards


Well, this is not a good idea to get data from a cell. Cells represent View concept in Model-View-Controller paradigm. You should be able to access all the data that a cell can access, so get it from the primary data source.

0

精彩评论

暂无评论...
验证码 换一张
取 消