Obtaining information about the System's current cursor
Obtaining information about the System's current cursor
- Subject: Obtaining information about the System's current cursor
- From: "Mark McElhinney" <email@hidden>
- Date: Thu, 29 Sep 2005 14:37:20 -0600
- Thread-topic: Obtaining information about the System's current cursor
Is there any way for a cocoa application to determine what cursor the OS
is using at any given time? I have seen NSCursors currentCursor method,
however, this only returns the current cursor for your application.
If there is no way to determine the cursor type at any given time, is
the any sort of callback that you can subscribe to that will inform your
application when the cursor changes?
If neither of these are doable in a Cocoa application, does anyone know
of another means to obtain this information?
Purpose: I need to capture the entire desktop area, including the
cursor, but referencing the screen bytes with CGDisplayBaseAddress only
give the screen information, not the cursor information. So I then get
the mouse location using [NSEvent mouseLocation] and if I can find out
which cursor is being used, can then draw it into my buffer at the
correct location.
Thanks in advance for any help.
Mark McElhinney
_______________________________________________
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