I purchased appletv for use on my mac, do i need to purchase a cable as well?
For what purpose? The Apple TV is a media set top box and to be connected to an HDTV.
It wirelessly connects to your computer through home-sharing to stream content from your iTunes library. If you are having an issue with this then you need to post what exactly it is.
Retrieving data ...