[comp.sys.mac.programmer] Overriding Arrow Cursor

sl242030@silver.ucs.indiana.edu (Robert P. Humphrey) (03/08/91)

	Does anybody know how to override the arrow with an ROv#
resource that is located in ROM.  ResEdit is no problem is no problem
for me, and maybe I'm missing something obvious, but I'm stumped.
	I know it can be done, because I've seen INITs that do it.
But I'd like to be able to do it using the System.  (6.0.5)

	Thanks,



--
*******************************************************************************
       Robert Humphrey,       "It's easy to grin when your ship comes in,
       Gentleman Scholar      And you've got the stock market beat;
                              But the man worthwhile, Is the man who can smile,
   sl242030@ucs.indiana.edu   When his shorts are too tight in the seat."
                                                  -Ted Knight, Caddyshack
*******************************************************************************

urlichs@smurf.sub.org (Matthias Urlichs) (03/10/91)

In comp.sys.mac.programmer, article <1991Mar7.231517.12516@bronze.ucs.indiana.edu>,
  sl242030@silver.ucs.indiana.edu (Robert P. Humphrey) writes:
< 	Does anybody know how to override the arrow with an ROv#
< resource that is located in ROM.  

You can't.

The arrow cursor is located somewhere in ROM, and placed into an
application's QD globals when it calls InitGraf. You can either change the QD
globals, or patch SetCursor to compare the given cursor image with your local
copy of an Arrow.
You'll have to do the latter if you want to globally replace a normal cursor
with a colored one, as I did with the ColorCursor INIT.

-- 
Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de     /(o\
Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330)   \o)/