Re: CGWindowListCreateImage fails on Snow Leopard with kCGNullWindowID

2009-09-10 Thread David Duncan
On Sep 10, 2009, at 7:32 AM, Jason Foreman wrote: I am attempting to use the CGWindowListCreateImage function to capture a desktop screenshot. The following code (taken straight from the SonOfGrab sample) works on Leopard, but is failing on Snow Leopard: CGImageRef screenShot =

Re: CGWindowListCreateImage fails on Snow Leopard with kCGNullWindowID

2009-09-10 Thread Jason Foreman
On Sep 10, 2009, at 12:34 PM, David Duncan wrote: On Sep 10, 2009, at 7:32 AM, Jason Foreman wrote: CGImageRef screenShot = CGWindowListCreateImage(CGRectInfinite, kCGWindowListOptionOnScreenOnly, kCGNullWindowID, kCGWindowImageDefault); On Snow Leopard, the CGImageRef is NULL and the