[WASTE-list] Drawing issues with WASTE 3.1

Dan Korn dkorn at printable.com
Tue Mar 25 13:30:39 EDT 2008


I'm upgrading a PPC-only project that had been built in CodeWarrior
using WASTE 2.1b1 to a Universal Binary project in Xcode using WASTE
3.0 (v3.1b2). I'm using a modified version of the WTextView
PowerPlant wrappers, with the QuickDraw eumlation in Leopard.

Everything seems to be mostly working, but I'm having an issue where
the text is sometimes drawn at the top left of my PowerPlant dialog
instead of in the pane for the WTextView. It seems to depend on
whether I have some text selected. If there's something selected, and
I modify the text with WESetAttributes, it draws correctly. But if
nothing is selected, and I modify the "null style" with
WESetAttributes, everything gets drawn in the wrong place. I think
all my calls to FocusDraw() are in the right places, and they seem to
work in 2.1, but there's something different about 3.0.

Any ideas? I might have to do something like suppress drawing when
there's no selection. I can try to create a sample project which
shows the problem, but it's going to be big with PowerPlant.

Thanks,
Dan



More information about the WASTE-list mailing list