SDK Subclassing

Greetings all again,

I’m having trouble subclassing my custom classes in the SDK. I have a base class that will form part of numerous other classes that use the same properties.

If I create a new instance of my base class, I can set all the properties successfully and all is good. When I create my subclass, I can see all of my base class properties as well as the extra subclass properties via autocomplete in the IDE, but when I attempt to access any base class properties in the subclass, my app crashes, usually because of a null pointer.

I’m using REALStandardGetter & REALStandardSetter for all my simple properties, which are mainly strings.

A theory I have is that I possibly may need to invoke a Super.Constructor when instantiating my subclass which I do not do at this stage. I may be of the misunderstanding that the SDK does this for me, which may not be occurring.

Any thoughts and or examples appreciated.

Cheers
Grant

My subclassing is working now.

Changed a REALObject property in my class to use REALStandardGetter & REALStandardSetter which has fixed the problem. I don’t know why!!

Cheers
Grant