• 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: Get the window at a certain point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the window at a certain point


  • Subject: Re: Get the window at a certain point
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Fri, 12 Nov 2004 21:27:20 +0100

At 13:39 Uhr -0500 12.11.2004, Tim Conkling wrote:
Thanks to both people who sent me code to do this. However, it seems that these solutions won't work if another app's window is covering the window of mine that's located at the particular point, right?

It will work. It will simply give you one of your app's windows, ignoring any other apps' windows that may be there.


Neither Carbon nor Cocoa let you get at the global window list (what used to be LMGetWindowList() or whatever in Classic).

Letting apps get at other apps' windows is a security risk. If you need that, you'd either need to find some undocumented CG Window Server APIs, or you'd need to use a haxie, or you could require the user to turn on Accessibility, which contains a global FindWindow-like call.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Get the window at a certain point (From: Tim Conkling <email@hidden>)
 >Re: Get the window at a certain point (From: Ryan Stevens <email@hidden>)
 >Re: Get the window at a certain point (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Get the window at a certain point (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: Changing the position of a NSStatusItem
  • Next by Date: Re: Making NSBrowser more efficient
  • Previous by thread: Re: Get the window at a certain point
  • Next by thread: Looking for a UK developer
  • Index(es):
    • Date
    • Thread