CocoaDev

Edit AllPages

Panther now allows you to make cursors any size you want!! After playing around with creating custom cursors from scratch, I ran into some problems that you should be aware of. The first thing you should know is that the cursor�s hot spot has to coincide with an opaque portion of the image the cursor is initialized with. This means that if you want to place the hot spot at the center of a ring cursor (like the eraser in Photoshop 7), you have to draw a tiny spot in the middle of the cursor to represent the hot spot. Why Apple forces this on you is beyond me, but I�m sure there�s a good reason for implementing this restriction. Here�s a snippet of code for creating a ring cursor from scratch:

}

–zootbobbalu


How was it not working? I used your code, took out the two “dot fill” calls, and the cursor worked fine for me.