• 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
Misc Binding issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Misc Binding issues


  • Subject: Misc Binding issues
  • From: Edwin Vane <email@hidden>
  • Date: Sun, 7 Aug 2005 17:55:44 -0400
  • Mail-followup-to: Cocoa-Dev <email@hidden>

Hi,

Bindings are apparently not useful in every situation according to
some people. Beyond the obvious question of "which situations are not
good" what is the non-bindings way of implementing a controller? The view
isn't supposed to have any links to the model (according to previous
posts by others here) except through a controller. And yet, the Graphics
Bindings example from
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
seems to have the view access model objects directly (via arangedObjects
in an NSArrayController).

So my confusion is this: I can see a non-bindings controller passing an array
of objects to a view to render and shuttling change/add/remove events
from view to model via delegation (or manual KVC-KVO perhaps) except the
nature of the view being able to access the model this way seems to
violate previous advice. How does the NSController way of doing things
not violate this advice either?

--

Edwin Vane
   MMath Candidate
   Computer Graphics Lab
   School of Computer Science
   University of Waterloo

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Getting Variables from a Flash Movie
  • Next by Date: Re: tiffrepresentation of multiple subviews
  • Previous by thread: Getting Variables from a Flash Movie
  • Next by thread: Modifying bitmap data
  • Index(es):
    • Date
    • Thread