Skip navigation.
 
mlCorrect use of NSViewController
FROM : Jonathan Dann
DATE : Wed Mar 19 12:37:33 2008

Hi guys,

I've ended up with a bloated window controller in my document based 
app and want to refactor my code using done view controllers.  My 
question is really about design.

If I have a split view with which contains a split view (like mail) 
then should I have a controller for the large split view which will 
then contain an ivar that points to a controller for the smaller split 
view?  As a subview of one of the split views I would then have a text 
view that itself needs a view controller, so it seems like I'll he 
ending up with a heirarchy of view controllers that reflects the view 
heirarchy itself. This seems like I'm gong about this the wrong way ad 
would end up with a spaghetti code.

Can anyone give mr a few hints as to how this should he fine properly?

Thanks,

Jon

Related mailsAuthorDate
mlCorrect use of NSViewController Jonathan Dann Mar 19, 12:37
mlRe: Correct use of NSViewController Cathy Shive Mar 19, 13:19
mlRe: Correct use of NSViewController Jonathan Dann Mar 20, 02:19
mlRe: Correct use of NSViewController Cathy Shive Mar 20, 08:40
mlRe: Correct use of NSViewController Jonathan Dann Mar 20, 12:35
mlRe: Correct use of NSViewController Cathy Shive Mar 20, 13:29
mlRe: Correct use of NSViewController Paul Szego Mar 20, 23:27
mlRe: Correct use of NSViewController Jonathan Dann Mar 21, 21:49
mlRe: Correct use of NSViewController Cathy Shive Mar 21, 22:31
mlRe: Correct use of NSViewController Steve Weller Mar 22, 04:25
mlRe: Correct use of NSViewController Steve Weller Mar 22, 04:31
mlRe: Correct use of NSViewController Cathy Shive Mar 22, 05:18