Re: NSArrayController KVO question...

2012-11-23 Thread Randy Widell
Well, I implemented your method and still had issues. Turns out the value binding for the drop-down menu was a secondary issue. After implementing your method, I could verify that changing the property did, in fact, trigger an update in the table. However, the values never changed in UI. The

Re: NSArrayController KVO question...

2012-11-22 Thread Randy Widell
You presume correctly. Your suggestion makes perfect sense. I was just reading about key dependencies yesterday, but didn't put 2 and 2 together because I wasn't think about the way the table view was setup. Thanks for the help! On Nov 22, 2012, at 12:16 PM, jonat...@mugginsoft.com wrote: >

Re: NSArrayController KVO question...

2012-11-22 Thread jonat...@mugginsoft.com
On 22 Nov 2012, at 18:57, Randy Widell wrote: > Right, and in other places it works for me. For instance, I have a window > with text fields bound to a model object through an object controller. > Updating properties of the model updates the text fields. > > Reading your test below, one thin

Re: NSArrayController KVO question...

2012-11-22 Thread Randy Widell
Right, and in other places it works for me. For instance, I have a window with text fields bound to a model object through an object controller. Updating properties of the model updates the text fields. Reading your test below, one thing I was forgetting is that I am not binding a column in t

Re: NSArrayController KVO question...

2012-11-22 Thread jonat...@mugginsoft.com
On 21 Nov 2012, at 22:19, Randy Widell wrote: > Hmm. Well, I am updating the model (and the database that backs it). I just > need the UI to reflect it. Hmm, that sounds wonky. The whole point of binding is that you can update your model and have your UI reflect the change without any other i

Re: NSArrayController KVO question...

2012-11-21 Thread Randy Widell
Hmm. Well, I am updating the model (and the database that backs it). I just need the UI to reflect it. I guess I was assuming that NSArrayController would respond to a value observation the same way it responds to, for instance, a selection change in the table view (updates the menu item's ch

Re: NSArrayController KVO question...

2012-11-21 Thread jonat...@mugginsoft.com
On 21 Nov 2012, at 20:42, Randy Widell wrote: > Searching around the Internet, I see a lot of questions and answers about how > to observe changes to properties of objects in a NSArrayController. > Everything I have seen, though, relates to a third object doing the > observing. For instance

NSArrayController KVO question...

2012-11-21 Thread Randy Widell
Searching around the Internet, I see a lot of questions and answers about how to observe changes to properties of objects in a NSArrayController. Everything I have seen, though, relates to a third object doing the observing. For instance: [arrayController addObserver: viewObject forKeyPath: