Let's take a bit of a rest on code issues for this one.
So in working a bit more on my "super secret project that will never see the light of day", I have stumbled on a kind of a design issue and I'd like some input on.
Basically, I have a ViewController that does about nothing except initialize my view and add it to the Window and makes sure to remove everything once this is done. All my drawing code then happens inside a heavily modified UIImageView. The problem I have stumbled upon is the M part of MVC. I'm at the point where I need to feed Model data into the view for display. The problem is, since the view is doing everything, I don't quite understand how to keep the M and V part talking to each other only through the Controller.
How do you guys feed information for display to your view when all the drawing/animation code is done in a view, as is the input ? Should I simply cave in and make my UIImageView the sort of "engine" of the whole app where everything happens in there and just say "screw it" to MVC best practices ?
So in working a bit more on my "super secret project that will never see the light of day", I have stumbled on a kind of a design issue and I'd like some input on.
Basically, I have a ViewController that does about nothing except initialize my view and add it to the Window and makes sure to remove everything once this is done. All my drawing code then happens inside a heavily modified UIImageView. The problem I have stumbled upon is the M part of MVC. I'm at the point where I need to feed Model data into the view for display. The problem is, since the view is doing everything, I don't quite understand how to keep the M and V part talking to each other only through the Controller.
How do you guys feed information for display to your view when all the drawing/animation code is done in a view, as is the input ? Should I simply cave in and make my UIImageView the sort of "engine" of the whole app where everything happens in there and just say "screw it" to MVC best practices ?