static-initializer

How to check whether a class is initialized?

You'll probably ask, why would I want to do that - it's because I'm using a class (from an external library) which does stuff in its static initializer and I need to know whether it's been done or not. I looked at ClassLoader, but didn't find anything that looked useful. Any ideas? ...

Using constant objects in objective-c

I have a piece of code similar to this: //Foo.h OBJC_EXPORT MyObject *const myObj; // Foo.m MyObject *const myObj; @implementation Foo +(void) initialize { if (self = [Graph class]) { myObj = [Config get:@"Foo"]; // <--- ERROR! assignment of read-only variable 'Foo' // .... } } // .... @end This ...