[Drawkit] DKGuide position mayhem
James Maxwell
jbmaxwell at rubato-music.com
Sun Jun 22 17:29:34 PDT 2008
Hi All,
I've got a weird problem here, with a subclass of DKGuide I've made.
Basically, the -position: field seems to go a bit nuts when I read it.
What I'm doing, more precisely:
I have a grid layer and a guide layer.
The guide layer uses a subclass of DKGuide (MetricMarker), which adds
a bit more information relating to the grid layout.
The grid will change its majors, divisions, and spans, while creating
its cached grid image, by reading the extra data from each guide.
I add guides to the guide layer manually, using -addGuide:, which
appears to work properly.
If I check the position immediately after adding, it looks correct
(first line below)
However, when my grid layer calls the guide layer from the drawing,
and gets its stored guides, although it finds the guides correctly,
the position goes absolutely bonkers, as in the 2nd and 3rd lines below.
2008-06-22 17:15:53.229 DrawKitExp1[1617:10b] Created marker at
position: 660.000000
41221-07--2147483642 17:00:00.231 DrawKitExp1[1617:10b] Found marker
0: <MetricMarker: 0x471d80>. Position:
8269053854345707479977951232.000000.
41221-07--2147483642 17:00:00.231 DrawKitExp1[1617:10b] Found marker
1: <MetricMarker: 0x488ea0>. Position:
8269053863208791546643087360.000000.
Anybody have any thoughts about what might be going wrong?
Thanks in advance.
J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.apptree.net/pipermail/drawkit-apptree.net/attachments/20080622/a31f8281/attachment.htm>
More information about the Drawkit
mailing list