views:

439

answers:

2

Does anyone has any idea how can I capture screen using objective c in mac os? to be more specific, how can I capture the active / focused application screen then create an image into a specified path.
Any help is highly appreciated.

+2  A: 

Have you checked out Apple's “Son of Grab” for capturing images of windows with the CGWindow api?

Arkku
yeah, i have seen it, i'm rather new to objective c, Son of Grab is a bit difficult for me. my requirement is very simple, create an app which runs in background, upon meeting certain criteria, just capture the current focused window and create an image on a specified path
Daniel
A: 

You can also check Apple's OpenGLScreenSnapshot

Amit Gupta