• 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: Tim Conkling <email@hidden>
  • Date: Fri, 12 Nov 2004 13:39:59 -0500

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?

Also, is the array that -[NSApplication windows] returns guaranteed to be ordered in a way that corresponds to the z-ordering of the app's windows? From the code samples that I was sent, it looks like people are assuming that the array is ordered from topmost to bottommost window -- is this a valid assumption? (I didn't see anything in the docs about it).

Thanks again,
Tim

On Nov 12, 2004, at 12:22 PM, M. Uli Kusterer wrote:

http://www.zathras.de/programming/cocoa/UKDockableView.zip/ UKDockableWindow/NSApplicationWindowAtPoint.m

(you can just click the "Download entire archive" link to get the actual file.
--
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
  • Follow-Ups:
    • Re: Get the window at a certain point
      • From: "M. Uli Kusterer" <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>)

  • Prev by Date: Re: Can NSStatusItem contain NSTextField ?
  • Next by Date: Changing the position of a NSStatusItem
  • Previous by thread: Re: Get the window at a certain point
  • Next by thread: Re: Get the window at a certain point
  • Index(es):
    • Date
    • Thread