You seem new to OSX in general, so:

OSX's GUI layer is called Aqua, and you can not interact with it with C or C++, it's Cocoa (Apple's language) only, so you will not be able to drag things around natively.

And that "basket" at the bottom of the screen is called your Trash Can :P You can't interact with it in C++ (you could, but it's really messy... you have to pipe to AppleScript.)

As for the animation, you give more into. What are you drawing with? OpenGL? What type of window do you have? GLUT? 2D, 3D? orthographic, frustum...?