Article View: comp.sys.next.programmer
Article #1224Filling out info in panel from subclassed Object
From: John W. Wooten
Date: Wed, 19 Aug 1992 17:47
Date: Wed, 19 Aug 1992 17:47
40 lines
1720 bytes
1720 bytes
I started with DRAW to learn something about manipulating objects which
are subclasses and using groups of them.
I have placed an addition to the menu under Tools which sends a message
to the GraphView (via DrawDocument) with
- showProp:sender
/*
* Displays the properties of the object selected
*/
{
id g = [self selectedGraphic];
if (g != nil)
[g showProp];
return self;
}
Now in the class Graphic, there is a method for showProp
which is null to be overridden by subclasses. I am now trying
in the subclass of Graphic called Element to bring up the panel I
defined as PropertyPanel.nib. The part I have now is shown below.
This works, popping up the panel if Properties is selected in the menu
when an Element has been selected with the DRAW Tool.
- showProp
{
id propertyPanel;
propertyPanel = [NXApp loadNibSection:"PropertyPanel.nib"
owner:self withNames:NO];
return self;
}
The question is: How do I place information into the fields of that
panel? I have instance variables such as elementNumber, area,
and temperature that I want to write into a form on the panel.
How do I assign the outlets and actions for the panel? Do I need an
Object named myProperties that has such methods and then connect them
to the panel?
-----------------
J. W. Wooten
Technical Details
Message-ID:
<1992Aug19.174734.22858@ornl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!rsg1.er.usgs.gov!ornl!usenetShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!rsg1.er.usgs.gov!ornl!usenet From: woo@ornl.gov(John W. Wooten) Subject: Filling out info in panel from subclassed Object Message-ID: <1992Aug19.174734.22858@ornl.gov> Sender: usenet@ornl.gov (News poster) Organization: Oak Ridge National Laboratory Date: Wed, 19 Aug 1992 17:47:34 GMT Lines: 40