howto get global mouse states
howto get global mouse states
- Subject: howto get global mouse states
- From: "Christian Robl" <email@hidden>
- Date: Mon, 4 Oct 2004 12:34:05 +0200 (MEST)
- Importance: Normal
Hello,
I want to build a COCOA application wich should recenter its window on the
current mouseposition if a particular mouse button is pressed (e.g. middle
button).
In "awakefromnib" I call [NSEvent mouseLocation] for an initial window
placement which works great. While running the app I can get some
informations via polling [NSApp currentEvent] and
processign according the Event occured, but as soon as I mov/click outside
of the app's window
no event occurs or is processed by my app.
Whats wrong? How can I get mouse states regardless if the apps window is
clicked/active. It would also be nice to get notifications like
mouseDown/moved/dragged like for NSView rather than polling. is there a
solution? Cocoa/Carbon/Quartz?
Thanks a lot in advance!
Cheers
Christian Robl
_______________________________________________
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