Thanks for the reply,
#
To be clear what does the macro SYNTHESIZE_SINGLETON_FOR_CLASS(MySingleTonCassName) do exactly..
Referring to this article:
http://cocoawithlove.com/2008/11/singletons-appdelegates-and-top-level.html
SYNTHESIZE_SINGLETON_FOR_CLASS is a multi-line macro. It expands to the series of \-delimited lines of code that you see in SynthesizeSingleton.h. Like any macro, it also replaces occurrences of its parameters (classname in the given header), with whatever you've entered between the parentheses.
If you don't know about \-delimited continuation lines, or don't understand macros in general, you should refer to a C reference book. Those things are plain standard C.
If you're asking "please explain all the code", then I think you can read the article and the code well enough to work that out yourself. If not, then you need to review the fundamentals.
If you have a specific question about a specific line of code in the expanded macro, then paste that line into a post.
Expecting someone to provide an exact line-by-line explanation of a 50-line macro is expecting too much, especially since there's an article that explains how to use it. The whole point of creating macros is that you don't have to understand what's inside them, all you have to do is use them correctly, and I think the article outlines the correct use.