Get the gadget at a point on the screen? (Mac)
BlitzMax Forums/MaxGUI Module/Get the gadget at a point on the screen? (Mac)
| ||
I think someone had some code to retrieve the gadget at a given point onscreen. Where is it? |
| ||
The basic UI component in Cocoa is called an NSView, if you are not familiar with Apple documentation you should probably start here: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html The hitTest method is possibly of use, having a look at MaxGUI the gadget under a mousemove event if sensitive should already be possibly being reported. |
| ||
I'm attempting to use the [NSView convertPoint:frame.origin toView:nil] method, but it does not act as I would expect. Last edited 2011 |
| ||
Seb helped with the coordinate transformation. I'll ask him if he wants to make that code public. Now just have to get the hittest working... |