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

Connections


  • Subject: Connections
  • From: email@hidden
  • Date: Wed, 8 Aug 2001 12:22:11 -0400

I've been trying to get my head straight about connections, to no avail. I think I understand the connections between view and controller in a .nib: this is more of a "wiring diagram" for making actual connections with the real objects when the .nib is loaded.

What confuses me is the connections between controller and model. For example, on page 117 of "Learning Cocoa" the author(s) state: "Because instances of this model class don't communicate directly with the interface, there is no need for outlets or actions." But then 2 pages later it states "Make an outlet connection between ConverterController and Converter"--which is the model object referred to 2 pages earlier. If this connection is necessary, then why isn't another connection from the model back to the controller needed in order to return the asked for value?

I have seen no discussion concerning making connections between model objects; is it just assumed that I'm supposed to know that I have to ctrl-drag in Interface Builder before a message can be sent? Or can the message be sent without this explicit connection? And what about notifications? Is there a radio metaphor here as well as a wiring metaphor?

Sorry for the noise; I just don't know where else to turn, having poured over the awful "Learning Cocoa" book, and the MUCH better "Cocoa Programming for Mac OS X," due out next month. Thanks for any help!

Brian E. Howard
Cocoa Cult Central


  • Follow-Ups:
    • Re: Connections
      • From: Chris Gehlker <email@hidden>
  • Prev by Date: Cocoa downgrade from openstep?
  • Next by Date: Re: It is time for me to take a decision. [Slightly OT]
  • Previous by thread: Reading raw bytes
  • Next by thread: Re: Connections
  • Index(es):
    • Date
    • Thread