Objective-C Singleton Class

Using this SynthsizeSingleton.h to create a singleton class in obj-c.

Include the .h into project.
add

SYNTHESIZE_SINGLETON_FOR_CLASS_HEADER(ClassName);

into the ClassName.h.

And add

SYNTHESIZE_SINGLETON_FOR_CLASS(ClassName);

into ClassName.m.

That…should be about it. Unless i missed some stuff out…. will look over…

oh You can then call the class by using

[[ClassName sharedClassName] someProperty];