I have NSTableView with connected NSArrayController. NSArrayController has some keys and they are represented with corresponding columns in NSTableView. I try to find the way to get the corresponding keypath of NSArrayController through selected column in NSTableView. How can I do this?
Asked
Active
Viewed 107 times
0
-
Get the keypath where? In some NSTableViewDelegate method? – stevesliva Apr 10 '14 at 02:25
-
Directly or in some delegate method. – user1746263 Apr 11 '14 at 14:08
-
Would you consider your question a duplicate of this one? http://stackoverflow.com/questions/9895060/how-can-an-nscell-detect-the-model-key-path-its-bound-to – stevesliva Apr 14 '14 at 19:05
-
It, at least, has some snippets of using "infoForBinding" which you could use if you have a pointer to the NSTableColumn – stevesliva Apr 14 '14 at 19:08