Bindings - Preserving the Modal/Controller
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.