Hi All,

In our application we want to capture a selected area similar to Apple's Cmd+Shift+4 i.e during selection capture, the active state of another application has to be captured.

This is what we are doing currently.

When the user enters the selection capture mode, we hide the application's main window and put up a transparent window that covers the entire screen. The selection area is drawn on this window and we capture the image from the selected area.

However we are not able to capture the active state of the close, minimize, zoom, scroll
buttons of the application currently on the screen.
These are in the disabled state because our application is currently active.

We have tried the following.

1. Capturing the screen using CGDisplayCapture and then displaying a transparent window
and drawing over the window.

See here for the documentation:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/AdvancedDrawing/AdvancedDrawing.html#/ /apple_ref/doc/uid/TP40003290-CH207-SW16

However this solution freezes the screen.
For eg: If a movie is being played and we enter the selection mode, it is not possible to receive screen updates.
But this is not the case with Apple's Cmd+Shift+4.

What are we doing wrong here?

Is there any workaround to capture the active state of the applications?

Thanks in advance
Srinivas

-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an 
intended recipient, please notify the sender and delete all copies. Emails to 
and from our network may be logged and monitored. This email and its 
attachments are scanned for virus by our scanners and are believed to be safe. 
However, no warranty is given that this email is free of malicious content or 
virus.
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to