Connections
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