How to bind data to a NSTableView from a NSDictionary?
-
28-09-2019 - |
Pergunta
Does anybody knows how to fill up a NSTableView using binding values from a NSDictionary?
Thanks in advance.
Solução
You need to create an NSDictionaryController
in Interface Builder. Bind it to your dictionary, and then bind the NSTableView
to the objects in the NSDictionaryController
.
If you don't yet fully understand Cocoa Bindings and KV coding, you should start reading here first:
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow