I aam planning to write a lcd numeric / 7 segment display for iphone.
(a display that consists of several numbers, each consisting of 7 (dash) segments.)
- My question is, after mvc pattern, where does the 'number parsing' code belong? View or its controller?
So, should the controller pass the view just a number to display, letting the -drawRect method find out which segments to lighten up?
Or should the controller pass the view directly, which segments to lighten up, after finding that out in a method within the controller class?
As i learned so far, the controller is responsible for all logic things. But i'm not sure if that kind of logic is also meant by that.
- Oh and by the way, should the controller just set properties on the view, or would it be better to call the controller as a delegate from within the view class to fetch the data?