• 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: How to get Window Info Dict for just one Window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get Window Info Dict for just one Window?


  • Subject: Re: How to get Window Info Dict for just one Window?
  • From: Dave <email@hidden>
  • Date: Fri, 10 Jun 2016 16:59:41 +0100

More experimenting:

if I use

myWindowListOptions = kCGWindowListExcludeDesktopElements | kCGWindowListOptionIncludingWindow;
myWindowArray = (NSArray*) CFBridgingRelease(CGWindowListCopyWindowInfo(myWindowListOptions,theWindowID));

it seems a bit better, but I’m not sure if it is valid or not?

Cheers
Dave

> On 10 Jun 2016, at 16:15, Dave <email@hidden> wrote:
>
> Hi,
>
> If I do this:
>
> myWindowListOptions = kCGWindowListExcludeDesktopElements | kCGWindowListOptionOnScreenAboveWindow | kCGWindowListOptionIncludingWindow | kCGWindowListOptionIncludingWindow;
> myWindowArray = (NSArray*) CFBridgingRelease(CGWindowListCopyWindowInfo(myWindowListOptions,theWindowID));
>
> Then this works ok, but slows down a LOT when the Window is over a “Crowed” area of the Screen(s). Is there no way to get JUST the Window I am interested in, e.g. the one Specified by theWindowID (which is obtained from the Info Dictionary ONCE via the kCGWindowNumber key).
>
> I cannot believe that there isn’t a function to do this simple thing?
>
> Cheers
> Dave
>
>
> _______________________________________________
>
> 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: 
 >How to get Window Info Dict for just one Window? (From: Dave <email@hidden>)
 >Re: How to get Window Info Dict for just one Window? (From: Dave <email@hidden>)

  • Prev by Date: Re: How to get Window Info Dict for just one Window?
  • Next by Date: Open-file progress dialog with cancel button
  • Previous by thread: Re: How to get Window Info Dict for just one Window?
  • Next by thread: Is windowControllerDidLoadNib used only when windowNibName is?
  • Index(es):
    • Date
    • Thread