Ok so this is the situation I have.
I have created new project using master detail template and in MasterViewController I have table and cell which was displaying title only. I modified cell to be custom and added two text-fields. My app requirement is to plot graph real-time as soon user enters point in textfield. Graph is displayed in detail view and that part works fine (Graph plotting).
Now my problem is how to transfer data from the class which is not uiview controller. MasterViewController is subclass of UITableViewController but to create outlets for the textfields I have to have subclass of UITableViewCell. So I created new class CellData (subclass of UITableViewCell) and I can get values from textfields real-time using IBAction didFinishEditing and IBOutlets for the textfields and data is automatically added to array.
Now how should I push this array to MasterViewController and then further to class GraphDraw which will actually draw graph. What I did is to create global class which I suspect is not ideal solution. Should I create three way protocol and delegate solution or maybe model class as someone suggested?
So far all the protocol and delegate tutorials were focused on viewControllers and I have no problems with that but they don't quite work for my situation. And with model class which is subclass of NSObject I cannot directly get cell data. Now I apologise if question is long but I am beginner and I am trying to figure out best way to solve these problems. Any help is appreciated.