[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Displaying Internal State
From: |
Marcus G. Daniels |
Subject: |
Re: Displaying Internal State |
Date: |
23 Oct 2000 22:24:21 -0700 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4 |
>>>>> "DA" == David Aliaga <address@hidden> writes:
DA> Then Lets suppose that I am not interested in this displaying so I
DA> closed the canvas (click on X)
DA> then again I am interested in the internal state so again I
DA> clicked on "createCanvas"
You can use `destroy notification' to clear the textItem array when the canvas
is destroyed. For example,
*** probeDemo2.m Mon Oct 23 16:18:18 2000
--- probeDemo2b.m Mon Oct 23 16:16:59 2000
***************
*** 74,79 ****
--- 74,89 ----
return self;
}
+ - (void)canvasDeath
+ {
+ unsigned ri, ci;
+
+ for (ri = 0; ri < ROWS; ri++)
+ for (ci = 0; ci < COLS; ci++)
+ textItems[ri][ci] = nil;
+ [canvas drop];
+ }
+
- (void)createCanvas
{
unsigned ri, ci;
***************
*** 85,90 ****
--- 95,102 ----
[canvas setWidth: CANVAS_WIDTH Height: CANVAS_HEIGHT];
[canvas setWindowTitle: "internalState"];
[canvas pack];
+ [canvas enableDestroyNotification: self
+ notificationMethod: M(canvasDeath)];
[self update];
}
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.