Cocoa Key Value Bindings: What are the explanations of the various options for Controller Key?

Posted by Elisabeth on Stack Overflow See other posts from Stack Overflow or by Elisabeth
Published on 2009-11-21T00:17:49Z Indexed on 2010/03/13 23:35 UTC
Read the original article Hit count: 391

When I bind a control to an NSArrayController using Interface Builder, there are a variety of options under the "Controller Key" field in the bindings inspector.

I understand what "arrangedObjects" is, and I semi-understand what "selection" is, but I'd love to see a really nice explanation of all the options and when to use each one. The list includes: selectionIndexes, selectionIndex, selectedObject, sortDescriptors, etc. I haven't been able to find a good explanation of these options.

I'm having trouble with a button that's bound to target > selection, so I'm hoping a much deeper understanding of these Controller Keys might help me debug my issue.

Thanks!!!

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about mac