Is there a way to programatically take a screenshot (or somehow get access to an image) of the current screen display on a mac?
Preferably, in C++, not Objective-C.<
Use screencapture(1).
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/screencapture.1.html
Invoke it with system() or posix_spawn().