There is also currently no undeprecated Carbon API for creating a
custom cursor. We plan to add Carbon API for this task in
Leopard. Until then, we recommend using either the deprecated
Quickdraw API, or NSCursor.
Thanks for the suggestions.
As far as I can tell, NSCursor is Cocoa, so no good for my C only
code,
Any particular reason? You can compile your C code with the ObjC
compiler and thereby call ObjC APIs, and if your code really isn't
compatible with ObjC (say you use variables named "id"), then you
could just put the ObjC code into a separate source file.
and I tried QD, but it doesn't really work. Yes the cursor initially
disappears (from the whole screen, which is not what I want), but if
the user then clicks the mouse, it comes back again. Given this,
I'm not sure if there's any point in trying to implement the trickier
business of tracking the cursor, and changing it when it's over
my window using QD. It's into diminishing returns for me at this
point.
So if you're just trying to hide the cursor, is there any reason you
can't just call HideCursor or CGDisplayHideCursor?
I do hope the new Carbon API is a little smarter, and allows setting
cursors as a window attribute ...
We will keep that in mind (although it's more likely we'll provide an
API that allows you to set a cursor as an HIView attribute. You could
always pass the window's root view to cover the etnire window.)
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden