Re: Table selection and bindings

2017-02-14 Thread John Brownie
OK, that makes sense. Tracing through, I do have a reloadData call, so I'll ensure that the selection gets maintained after that. Yes, there is a mixture of data source and bindings, with the table view relying on data source and a bit of KVO, while the inspector relies on bindings. Things get

Re: Table selection and bindings

2017-02-14 Thread Quincey Morris
On Feb 14, 2017, at 09:25 , Keary Suska wrote: > >> On Feb 14, 2017, at 8:37 AM, John Brownie > > wrote: >> >> Am I doing things incorrectly, or is there something that I can do to ensure >> that the change to the underlying array shown by the table triggers a >> s

Re: Table selection and bindings

2017-02-14 Thread Keary Suska
> On Feb 14, 2017, at 8:37 AM, John Brownie wrote: > > I have an NSTableView in a document window, and a utility window which > functions as an inspector, so its content is bound to the selected object in > the table in the document window. Everything seems fine, but there is a place > which

Re: Table selection and bindings

2017-02-14 Thread Steve Mills
On Feb 14, 2017, at 09:38 AM, John Brownie wrote: I have an NSTableView in a document window, and a utility window which functions as an inspector, so its content is bound to the selected object in the table in the document window. Everything seems fine, but there is a place which doesn't fun

Table selection and bindings

2017-02-14 Thread John Brownie
I have an NSTableView in a document window, and a utility window which functions as an inspector, so its content is bound to the selected object in the table in the document window. Everything seems fine, but there is a place which doesn't function as I expect. In the inspector, I can change t