Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by Robert Mueller
Wed, 30 Sep 1992 11:59
window's printPSCode - method
Author: Robert Mueller
Date: Wed, 30 Sep 1992 11:59
Date: Wed, 30 Sep 1992 11:59
46 lines
2057 bytes
2057 bytes
Is there a bug in window's printPSCode-method?
Window's printPSCode method routine does not print subclasses of "Form"
correctly, although displaying these subclasses on screen works fine!!!
Details:
I've implemented a subclass of "Form", called TheMPOForm (this subclass is also
available on a loadable palette). TheMPOForm-Objects organize Objects of the
class TheMPOCell, which is a subclass of FormCell. No graphical attributes
werde added to TheMPOForm, it's s sense is just to allow better input-checking
(by overwriting Cells method "isEntryAcceptable" in TheMPOCell). On screen,
TheMPOForm objects behave exactly like Form-Objects, but printing a Window with
TheMPO-Form objects by using the printPSCode method leads to the catastrophy:
Some TheMPOForm-objects are printed, while others are ignored; sometimes the
whole TheMPOForm is rotated.
This are the TheMPOForm routines, which deal with drawing and displaying,
perhaps you can find a bug (but why does displaying on screen work fine?):
- initFrame:(NXRect *)frameRect
{
id firstCell;
[super initFrame:frameRect];
[self setEntryWidth:150];
firstCell = [self insertEntry: "Input" at: 0];
[self sizeToFit];
return self;
}
- drawSelf:(const NXRect *)rects :(int)rectCount
{
int j;
numOfCells = [self cellCount];
for (j = 0; j < numOfCells; j++)
[self drawCellAt:j];
return self;
}
Perhaps I also have to overwrite the copy-Routine!!??
Thank in advance for your answer!
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