I have some class methods in a class with a pretty long name (TimingConfigController to be exact), and I call those methods quite often from within the class (example: [TimingConfigController intervalStringAt:i]), but the long class name bothers me because the statements get very long and less readable with all that inlined.
I was reading up to see if I could find a shorthand alternative, and I came upon this article on developer.apple.com: Defining a Class
It says, among other things, that
id newInstance = [[self alloc] init];
is an excellent way to make an object of the same class that self is. As far as I can tell, that statement calls a class method using the self pointer instead of the class name, so I tried that in my app, and although it might work, it gives a compiler warning. I really don't want to have warnings.
So, my questions are, is using self to call a class method possible and/or a good idea? Are there any better alternatives? Would it be terrible of me to do a #define Self TimingConfigController at the start of the .m file? Or should I just take my meds and live with the annoyances?