Correct use of NSViewController
Correct use of NSViewController
- Subject: Correct use of NSViewController
- From: Jonathan Dann <email@hidden>
- Date: Wed, 19 Mar 2008 11:37:33 +0000
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden