• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Capturing active state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capturing active state


  • Subject: Re: Capturing active state
  • From: Srinivas Prabhu G <email@hidden>
  • Date: Mon, 13 Jul 2009 23:37:08 +0530


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@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Capturing active state (From: Srinivas Prabhu G <email@hidden>)
 >Re: Capturing active state (From: Rob Keniger <email@hidden>)

  • Prev by Date: Re: CAKeyframeAnimation problem
  • Next by Date: IMEI Codes?
  • Previous by thread: Re: Capturing active state
  • Next by thread: iPhone sdk 3.0 -> MKMapView linker error
  • Index(es):
    • Date
    • Thread