Detect position of mouse without dragging

Digging this out to see if that’s possible nowadays?
Objective-C, if possible.

I have a Reporter with a dragging operation and while dragging, I need to turn off the selection marquee and the actual selection of GlyphsApp temporarily.

Otherwise when you move the thing around, you also select or even move Layer shapes, which is not desired.
Another problem is, that I want to keep the layer’s selection when dragging my thing.

Way back I even made the entire plugin a tool plugin, just because of that. But it has no tool functionality and should be a reporter. Now that I rewrite it, I stumbled again over this marquee issue.

I’m not sure if a reporter is the right place for this. Could you build a tool instead?

As I said, it was a tool before. But it has no Tool functionality, it just displays information, but you can move that information around with a little grabber.

The tool has the problem, that I when I use that, it doesn’t do what the actually selected tool does. The user still shall be able to use the path tool, or the selection tool, or whatever tool.