• 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
Bindings - Preserving the Modal/Controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings - Preserving the Modal/Controller


  • Subject: Bindings - Preserving the Modal/Controller
  • From: Shalev NessAiver <email@hidden>
  • Date: Tue, 27 Jul 2004 21:56:51 -0400

I just saw the bindings article at Cocoa Dev Central. I really like the opportunity that bindings present - I have been able to eliminate a large portion of glue code due to them. However, to fully preserve the Modal/View/Controller I want my modal class (which stores all the data) to be fully independent of the controller class. As far as I know though, the bindings have to be linked to the Controller class, which then passes on the data to the Modal class. It would seem that I would also need to define data structures within my Controller class as well. Otherwise, the bindings can not access the data. Is there some way (and I know there is) to connect the data from my Modal class directly to the NSObjectController class while still maintaining the Modal/View/Controller?


Basically:

NSTableView -> NSArrayController -> MyCustomController [need this connection ->] My Modal Data Class

Thanks in advance,
Shalev (1st post!)
_______________________________________________
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:
    • Re: Bindings - Preserving the Modal/Controller
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Who should release whom in a document-based app?
  • Next by Date: Re: earliest code that runs?
  • Previous by thread: Re: Who should release whom in a document-based app?
  • Next by thread: Re: Bindings - Preserving the Modal/Controller
  • Index(es):
    • Date
    • Thread