• 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
What window is the mouse over?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What window is the mouse over?


  • Subject: What window is the mouse over?
  • From: Karl Kraft <email@hidden>
  • Date: Tue, 22 Apr 2003 11:22:57 -0500

In NeXTSTEP/OpenStep/Rhapsody, you could find what window a mouse was over by using the postscript command findwindow. This is necessary if you want to write your own drag and drop interface, or something that can respond as the user is just moving the mouse around.

Somehow when I get a mouse click, NSEvent is able to tell me the affected window. Anyone know how it acomplishes this?

Right now, I'm walking the windowlist from NSApp, but it doesn't tell me the order of the windows on the screen, so it's impossible to know what point on the screen is drawn by which window.



--
To purchase it is not like spending money
but rather it is an investment in the future
in a blow against the empire
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Get RTF from web and show in NSTextView
  • Next by Date: Re: What's with these redundant methods ?
  • Previous by thread: Re: Get RTF from web and show in NSTextView
  • Next by thread: Newbie: Help with drawing images please
  • Index(es):
    • Date
    • Thread