I copied the timeAgo category for NSDate in XCODE4, but i get the following runtime error:
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSDate timeAgo]: unrecognized selector sent to instance 0x17e000’
I read in other posts i need to add a linking flag, which I did as follows:

But its still not working. What am I missing to use third party categories?
I don’t think you ought to mess with the linkers, at least not there. Wherever you got that category from may have mentioned that the file you put that in needs to be compiled, which you check by going to your project settings -> Build Phases -> Compile Sources. Make sure the category’s .m file is in there.