Hello,
I want to bind to a NSTreeController's selectionIndexPaths programatically by doing the following (so that I can get a string a selection and display in a text view)
[activePDFView bind:@"name" toObject:treeController withKeyPath:@"selectionIndexPaths.nodeName" options:options];
The tree controller is bound to a NSMutableArray that contains objects with the "nodeName" property. The object inside the NSMutableArray is KVC compliant for the property "nodeName" since I've implemented the proper accessors.
When I compile, I get the following message
'[<__NSArray0 0x1001698d0> addObserver:forKeyPath:options:context:] is not supported. Key path: nodeName'
I am not quite sure but is my binding correct?
Thanks.