Thanks Rob,That's a good workaround!
But, this will not fit into our requirements of our application.
As per our requirement, we cannot hide the dock icon.

In order to go with your solution, we might have to maintain
a daemon process which does just screen capture and
gives the captured image to the main application(This app will be visible in dock).

Is there any other way to solve this issue or
should we go with daemon process approach?

Regards,
Srinivas

On 13-Jul-09, at 6:48 AM, Rob Keniger wrote:


On 13/07/2009, at 1:19 AM, Srinivas Prabhu G wrote:

But the problem here is, as our application is active, when we read image from the frame buffer states of all other apps look disabled ie. scroller and buttons have greyish shade
instead of blue.

Similar problem is observed in SonOfGrab Apple sample application.
(http://devworld.apple.com/samplecode/SonOfGrab/index.html)

Is there any workaround to capture the active state of all the windows in desktop?


If you add the key LSUIElement with a boolean value of YES to your Info.plist file, your app will run without deactivating other apps.

It will also not have a menu bar or dock icon, however for a screen capture app that is probably an advantage.

A simple example: http://keniger.com/stuff/ScreenOverlay.zip

(run it from the Finder, not Xcode).

--
Rob Keniger



_______________________________________________

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/srinivasprabhug%40gmail.com

This email sent to [email protected]

_______________________________________________

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