Help with compile error

BCS ao at pathlink.com
Mon Oct 6 14:44:45 PDT 2008


Reply to Jacob,

> I'm trying to compile this file: http://tango.pastebin.com/m3c708004
> and I'm getting this error:
> 
> Error: this for init needs to be type NSObject not type
> dwt.graphics.GC.GC
> 

I'm not going to read that source (I don't use Tango for one) but 

in the class dwt.graphics.GC.GC look for a call to NSObject.init (named just 
like that)

If you find one, then the error is likely that NSObject.init is supposed 
to be static and is not. If you mark it as static and don't get any errors 
in it, you're good.





More information about the Digitalmars-d mailing list