If you are having trouble connecting your Mac to a TV or projector and you’ve tried everything to no avail, try a software update. Apple just released updates for OS X Lion and OS X Mountain Lion. To obtain these updates, run Apple Software Update.
Note that we also have a short document (go/projection) that shows how to connect a Mac or a PC to a projector and provides tips for resolving the most common issues.