Re: Setting Up a MVC most of it works BUT

2013-05-10 Thread Jens Alfke
On May 9, 2013, at 6:57 PM, Graham Cox graham@bigpond.com wrote: a) the data model explicitly calls a method of the controller to tell it about a change. This isn't great, because it sets up a strong dependency between the data model classes and the controller class(es). a+) the data

Setting Up a MVC most of it works BUT

2013-05-09 Thread YT
So I've spent the past few hours reading and am now trying to set up a simple MVC. I constructed a few buttons and textfields in a Window in IB The View will instantiate when the Xib is loaded (so I've read anyway) I created a MyController based on NSObject in the Xib SO once the Xib is loaded

Re: Setting Up a MVC most of it works BUT

2013-05-09 Thread Graham Cox
On 10/05/2013, at 10:35 AM, YT y...@redwoodcontent.com wrote: BUT how does one send data from myDataModel to MyController. OR is that by request from MyController only? It can be, but not exclusively. Sometimes your data model might want to push a value to the interface for display. It all

Re: Setting Up a MVC most of it works BUT

2013-05-09 Thread Graham Cox
On 10/05/2013, at 10:35 AM, YT y...@redwoodcontent.com wrote: BUT how does one send data from myDataModel to MyController. OR is that by request from MyController only? Just to elaborate on my previous answer, there are several techniques that are commonly used to update an interface when