[Drawkit] Changing grid snapping position of DKDrawableShape

Brad Larson larson at sonoplot.com
Mon Nov 3 15:08:23 PST 2008


I have a rectangular shape and I noticed that when I drag this shape  
it snaps the center of the rectangle to the grid, not one of the  
corners.  Is there a way to change the default grid snapping behavior  
of DKDrawableShapes so that I could use the upper-left-hand corner of  
the rectangle as the snapping point?

I tracked this down to the setLocation: method, but I'm not sure how  
the center of the shape gets assigned to be its location or how to  
override that.  I'm hoping it's something simple that I'm missing.

Thanks in advance for any pointers.

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





More information about the Drawkit mailing list