Add objects to NSDictionaryController

Posted by kaile on Stack Overflow See other posts from Stack Overflow or by kaile
Published on 2010-05-12T03:52:08Z Indexed on 2010/05/12 5:44 UTC
Read the original article Hit count: 229

I have an NSTableView which is bound to an NSDictionaryController. I have set this and the content dictionary through the interface builder. The question I have is, how do I add objects to the dictionary in a manner that the controller will see it automatically and display it in the table.

I've seen in examples about NSArrayController that you add the new objects through the controller rather than the actual array so the controller sees the change. However, I don't see a similar way of doing this with the dictionarycontroller...

Thanks for the help.

© Stack Overflow or respective owner

Related posts about cocoa-bindings

Related posts about macosx