• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Correct use of NSViewController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Correct use of NSViewController
      • From: Cathy Shive <email@hidden>
  • Prev by Date: Re: Network communication with NSFileHandle & NSSocketPort
  • Next by Date: NSLocale: "<city name> <zip code>" vs. "<zip code> <city name>"
  • Previous by thread: Re [Moderator] No iPhone SDK discussion here please
  • Next by thread: Re: Correct use of NSViewController
  • Index(es):
    • Date
    • Thread