I think the question is self explanatory. If I declare a property of a class, I don't seem to able to access that property within a class method. Is there any way to do this? The conventional method would usually be: self.[property] But when I call it within a class method, the compiler hands me a syntax error.
The problem is that it's not a property of the class but rather a property of each object that is created using that class as a template. To get to the property, you need an instance of the class. One frequent path to this is to use a Singleton pattern so that you have an object and a way of implementing class methods that affect that object.