I’ve got small CSV file with data. I want all variables in a row to be dependent.
Assume I have got values 1, 2, 3 in the first row,
and 4, 5, 6 in second.
I have also three objects: objA, objB, objC.
I want to set values the of these objects depending on the values of another. So when the user sets objA’s value as 1, I want objB and objC to take values of 2 and 3. But when user sets objC to value 6 I want objA and objB to take values of 4 and 5.
What’s the best way to archieve this? It’s an iOS project.
Consider Key-Value-Observing
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/
Example: