Or opt for Eclipse, it works in Mac
http://www.eclipse.org/downloads/
Good God no!
Recommending Eclipse as a c++ IDE is like recommending dynamite as a laxative. Yes, it might get the job done, but it will kill you in the process.
If Mac is the requirement, check out either XCode, Code Blocks or Qt Creator. If you must use a poorly configured Java IDE with C++ support bolted on, use Netbeans.