[Drawkit] DKGuide position mayhem

Graham Cox graham.cox at bigpond.com
Sun Jun 22 19:19:13 PDT 2008


One thing to note in general is that if you ever have a method that  
returns a float, it is essential that anything that needs to call it  
imports its class's header so that it has the correct prototype. If  
not you get bizarre results that can even cause memory corruption, not  
just bad return values, yet the compiler will give absolutely no  
warning. I have run into this on two occasions so far.

cheers, Graham


On 23 Jun 2008, at 11:01 am, James Maxwell wrote:

> Oops, answering my own question... Just a stupid oversight. I had to  
> type the objects in [[[self drawing] guideLayer] guides], since I'm  
> using a subclass. Typing the objects manually returns the correct  
> position info.



More information about the Drawkit mailing list