Article View: comp.sys.next.programmer
Article #317how do outlets work?
From: steggieeric Eric Fronberg
Date: Wed, 29 Jul 1992 16:34
Date: Wed, 29 Jul 1992 16:34
38 lines
1709 bytes
1709 bytes
This may be a naive question. I'm confused about the workings of
outlets in interface builder. I understand what outlets are supposed
to do -- provide access to instances of other objects, but I'm
confused how Interface Builder accomplishes this.
So if I have a interface definition to myobject
@interface myobject:Object
{
id outlet1;
id outlet2;
}
...
@end
I use IB to set outlet1 and outlet2 to some object instances in my
application. Later when I invoke the app and send a message to
myobject, outlet1 and outlet2 properly have object instances assigned
to them.
How does the startup code gain access to what I believe are private
variables in myobject to initialize them properly? What syntax would
I use if I were to try to do this manually?
Maybe I'm off with some of my assumptions on how ObjectiveC works.
In any case I'd appreciate if someone could enlighten me.
Thanks,
-- eric
--------------------------------------------------------------
| Eric Fronberg | email: eric@steggie.mtview.ca.us |
| Mountain View CA | ...!{sun,sgi,ultra}!steggie!eric |
| 415 957-2748 | vmail: "Hey you!" |
--------------------------------------------------------------
Technical Details
Message-ID:
<1992Jul29.163410.23660@steggie.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!mips!mips!ultra!steggie!ericShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!mips!mips!ultra!steggie!eric From: steggie!eric (Eric Fronberg) Subject: how do outlets work? Message-ID: <1992Jul29.163410.23660@steggie.uucp> Sender: eric@steggie.uucp Reply-To: eric@steggie.mtview.ca.us Organization: Mountain View, Ca USA Distribution: ba Date: Wed, 29 Jul 1992 16:34:10 GMT Lines: 41