My old ASS app has two table views, one a list of sets and the other a list of files for each set. I had this set up in ASS using some connected lists and parsing items into respective tables. Not the best but it worked. I also had some user options (default values) pertaining to each set of files. These change (along with the file list) as User changes sets.
I have found an excellent tutorial on Cocoa Dev about bindings and linking table views in particular:
But is it possible to bind the user default values (checkboxes etc.) to the “Sets” selection also . I have been reading the bindings docs and trying to gain some ground here. In other words - managing different sets of user options.
I am addicted to bindings now but already pushing my abilities to the limit and getting over my head with Cocoa programming.
ASOC is starting to seem like pandora’s box!
If any one has a pointer for me… this will be an ongoing experiment and would bring my old big ASS app to a much better place.
I think I may have got the question wrong. It’s not that I want to bind User defaults to a table’s selected row, I want to bind the value of interface items (a checkbox for example) to the selected row. I meant “User preferences” rather than defaults.
so a user might have in a table that lists sets 1,2 3 etc.
So different sets have different UI elements values associated with them. Presumably there would then be some way to archive the sets with their associated user preferences.
What I am actually doing with this app is creating a table of “backup sets.” Each set has a list of files displayed in another table and different options for each particular set. I can hook up the two tables with bindings using two array controllers but also want to “hook” up the user’s options for each set.
This is odd. When I tried this before it worked as I wanted; the value of a checkbox was bound to a selection in the table but the table selection retained its name.
Now when I check the checkbox it sets the value of the selected table row to 1 which makes sense perhaps. What I want though is for the value to be bound to the row choice but not the actual value of the selected row. Maybe this is not possible.