• 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
dual controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dual controllers


  • Subject: dual controllers
  • From: "Brian E. Howard" <email@hidden>
  • Date: Sat, 12 Oct 2002 19:47:03 -0400

Okay, I have the mojo down for loading Nibs and subclassing NSWindowController to handle the views, and creating model controllers by subclassing NSObject. But how do I set up an MVC using both controllers at the same time in order to make the thing more modular and keep the bloody data out of the view controller? This seems such a hairy deal that Anguish, et al took a pass on the subject on page 130 of their new tome. Indeed, the only thing I learned was that Apple's own user defaults and undo routines don't live up the the MVC design pattern. Are there any examples of this:


View - - - - - - - - - NSWindowController
|
|
NSObjectSubClass - - - - - - - - - - - Model


Sorry for the noise if I'm just being dense, but I've been dense on this subject for months and the time has come to deal with it. My *Killer* App works after a fashion, but it is all jammed up in one main controller and two view controllers and it's a real can of worms. Furthermore, I need to get this modularity down so that once I have some money I can PAY some of the brighter lights here to clean up and expand my program beyond what I'll ever be able to do in the few years remaining to me on this veil of tears. Without giving away the secret in the center! As always, thanks for any and all help.

Brian E. Howard
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Cocoa-nuts!
      • From: "Brian E. Howard" <email@hidden>
    • Re: dual controllers
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: SIGBUS with NSTask
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Re: SIGBUS with NSTask
  • Next by thread: Re: dual controllers
  • Index(es):
    • Date
    • Thread