• 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 obtain NSApplication from kCGWindowOwnerPID?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to obtain NSApplication from kCGWindowOwnerPID?


  • Subject: Re: How to obtain NSApplication from kCGWindowOwnerPID?
  • From: David Duncan <email@hidden>
  • Date: Fri, 8 Aug 2008 12:20:27 -0700

On Aug 8, 2008, at 11:46 AM, Stefan Hafeneger wrote:

I would like to figure out the NSWindow object for a screen location. I could use CGWindowListCopyWindowInfo() to obtain a list of all visible windows and consequently the bounds of each window, the (window server's) window ID and the PID. I don't want to get a pointer to the NSWindow or NSApplication object, but I would like to check for a specific application if this window belongs to this application and so get the NSWindow object. Since I already got low level information about the window and process I don't want to iterate over all NSWindows of NSApplication and do a hit test. Any ideas?


What are you really trying to do? You can't get access to another processes' NSApplication or NSWindow objects (not to mention not all processes with windows have either of these objects).
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: How to obtain NSApplication from kCGWindowOwnerPID?
      • From: Stefan Hafeneger <email@hidden>
References: 
 >How to obtain NSApplication from kCGWindowOwnerPID? (From: Stefan Hafeneger <email@hidden>)

  • Prev by Date: Re: NSForm from NSFormCell
  • Next by Date: Re: How to obtain NSApplication from kCGWindowOwnerPID?
  • Previous by thread: How to obtain NSApplication from kCGWindowOwnerPID?
  • Next by thread: Re: How to obtain NSApplication from kCGWindowOwnerPID?
  • Index(es):
    • Date
    • Thread