More Newbie Trouble with Basic Bindings
More Newbie Trouble with Basic Bindings
- Subject: More Newbie Trouble with Basic Bindings
- From: Kane Dijkman <email@hidden>
- Date: Thu, 31 Mar 2005 12:43:16 -0800
Hey Folks,
After quite a bit of hair pulling and gnashing of teeth I have been
able to get bindings to work so that the values are displayed properly
in an NSTableView via an NSArrayController. However, I have not been
able to get them to update when the array that the NSArrayController is
bound to is changed programatically.
I have an object for each elements data. Every time I have to add to
the NSTableView I add a new copy of the object to the array. But the
results don't show up.
I tried adding an outlet to my controller class and connecting that to
the NSTableView and passing it "reloadData". But that did not work.
I read mmalc's page's section on his webpage
Programmatic modifications to arrays not noticed by table view
but I think I am too new to understand exactly how to translate that
into the code I need.
I tried searching google and the mail list, as i am sure I am not the
first person to experience this, but had no luck in finding a solution.
So, my question is... if I have an array of objects that are bound to
an NSArrayController which is used by an NSTableView and I update the
array programatically what do I put in the code to
force/bribe/cajole/prompt the NSTableView to update?
Thanks,
Kane
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden