• 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: Rob Keniger <email@hidden>
  • Date: Mon, 13 Jul 2009 11:18:04 +1000


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


  • Follow-Ups:
    • Re: Capturing active state
      • From: Srinivas Prabhu G <email@hidden>
References: 
 >Capturing active state (From: Srinivas Prabhu G <email@hidden>)

  • Prev by Date: RE: literal strings - who do they belong to?
  • Next by Date: Re: Best 'Cocoa' File Preview
  • Previous by thread: Capturing active state
  • Next by thread: Re: Capturing active state
  • Index(es):
    • Date
    • Thread