• 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
Re: Challenge 18 in Hillegass Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Challenge 18 in Hillegass Book


  • Subject: Re: Challenge 18 in Hillegass Book
  • From: "Kyle Sluder" <email@hidden>
  • Date: Sun, 10 Aug 2008 13:03:15 -0400

On Sat, Aug 9, 2008 at 8:54 PM, James Gorham <email@hidden> wrote:
> I think that's where I'm unclear. Making the Document class aware of the
> view is easy enough with an IBOutlet. But how to properly make the view
> aware of the document I'm unsure of.

You're missing the point.  You don't connect your NSDocument (model)
to your views, you have a controller in between.  This controller is
responsible for noticing/being notified when the document changes so
it can update the view, and it is also responsible for noticing/being
notified when the view changes so it can update the document.

--Kyle Sluder
_______________________________________________

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: Challenge 18 in Hillegass Book
      • From: "James G." <email@hidden>
References: 
 >Challenge 18 in Hillegass Book (From: "James G." <email@hidden>)
 >Re: Challenge 18 in Hillegass Book (From: Graham Cox <email@hidden>)
 >Re: Challenge 18 in Hillegass Book (From: James Gorham <email@hidden>)

  • Prev by Date: Bindings array count to a label ( was Re: KVC beginners question )
  • Next by Date: Re: Bindings array count to a label ( was Re: KVC beginners question )
  • Previous by thread: Re: Challenge 18 in Hillegass Book
  • Next by thread: Re: Challenge 18 in Hillegass Book
  • Index(es):
    • Date
    • Thread