Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by John W. Wooten
Wed, 19 Aug 1992 17:47
Filling out info in panel from subclassed Object
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads