[Drawkit] DKGrid setSpan in grid distances

Brad Larson larson at sonoplot.com
Thu Jun 5 10:27:41 PDT 2008


If I could make a suggestion, I think that it would be cleaner if  
DKGrid's setSpan and span methods took and returned realspace  
distances in the current units, rather than the Quartz points that are  
used now.  The user would most likely want to work in their coordinate  
space and DKGrid knows all of the conversion factors.  I currently do  
something like [grid setSpan:[grid  
quartzDistanceForGridDistance:newValue] divisions:10 majors:2] in  
several places and this simple change would make for simpler code.

______________________
Brad Larson
SonoPlot, Inc.
3030 Laura Lane, Suite 120
Middleton, WI 53562





More information about the Drawkit mailing list