Skip navigation.
 
mldesigning beyond MV and (one) C
FROM : Daniel Child
DATE : Sat Jan 12 23:39:37 2008

Hi All,

Until now I've been doing very simple apps with a number of model 
classes, a view, and a single controller.

I am now going to try a more complicated interface, but don't quite 
understand how to apply the MVC paradigm in this case. (Just to be 
clear, this is NOT a document app, just a plain Cocoa app.)

I'm building a utility to take various types of data and parse them 
according to my settings. I'm looking to have an introductory window 
that asks what type of file the user wants to parse. Then based on 
the response, I open the appropriate window to gather data about the 
file to be handled. Separate interfaces will be used for the 
different types of parsing operations.

In the MVC paradigm, do you typically use a different controller for 
each major interface? Should I have three controllers, one to handle 
each type of parser? Three window controllers, to handle each major 
settings interface?

What about nib files? I've read that putting everything in separate 
nibs is more efficient in terms of loading time, but for quick and 
dirty apps, it would be nice to be able to use the "one nib has all" 
approach as well. Besides, this is not a time-critical app.

Currently, I have one controller, four windows (intro, and three for 
the different setting types), all in one nib file. I can open and 
close the separate windows fine. But is that bad design?

Thanks.

Daniel

Related mailsAuthorDate
mldesigning beyond MV and (one) C Daniel Child Jan 12, 23:39
mlRe: designing beyond MV and (one) C mmalc crawford Jan 12, 23:58
mlRe: designing beyond MV and (one) C Keary Suska Jan 13, 18:56
mlRe: designing beyond MV and (one) C Uli Kusterer Jan 14, 10:19
mlRe:designing beyond MV and (one) C Shripada Hebbar Jan 14, 12:08
mlRe: designing beyond MV and (one) C Daniel Child Jan 16, 00:40
mlRe: designing beyond MV and (one) C Uli Kusterer Jan 16, 02:31
mlRe: designing beyond MV and (one) C Ricky Sharp Jan 16, 03:03
mlRe: designing beyond MV and (one) C Ken Thomases Jan 20, 03:25