Adding addons in Xcode

I had hard time figuring out how to add addons to xcode project.
If I download an example how do I add the addon from scratch. These were few pestering questions for a beginer like me.

After lots of trial and error, I was finally able to get this working without any errors.
Many a times it was not about correct addition but about what is added.

The compilation can be found at…

Hope this will be helpful.

I am using Mac osx 10.6 and OF 0.6