I have a game in which I want the cursor to change to an icon representing the current player. My icons are tiffs and they composite perfectly in any NSView. I have also composited the icon of my program and it renders perfectly. My program icon is a .icns file. I created my program icon and the other icons in Iconographer. I changed the other two icons into tiffs using the - (NSData *)TIFFRepresentation method in NSImage. Anyway all of these render perfectly in any of my views.
The problem that I have is that none of these icons will show up when I try to use them as my cursor icon. In my - (void)resetCursorRects method of my view I do remember to set the size to 16 by 16. I know that the problem isn't that I'm doing anything wrong loading the images or anything because I can use any other tiff or icns as my cursor without any trouble. The NSImage that I pass to the - (id)initWithImage

NSImage *)newImage hotSpot

NSPoint)aPoint method in NSCursor always returns YES to an - (BOOL)isValid message.
When I tell it to reference a file that doesn't exist for my image, the cursor simply doesn't change over my view. That's nothing special. When I give it anything other than the icons that I use with my program they change over my view and render perfectly. When I give it one of my icons the pointer disappears over my view. It still works; it's just that it is invisible. The icons work fine because they appear in the view. I use them there too. I have tried making copies of them and putting them on the desktop and referencing them that way. Same thing, I get blankness when I move over my view. Putting any other icons, like Clock.icns from the clok program and using that works fine.
It seems like NSCursor should be able to display any of these icons that I can use in any view. So.. is this a bug in NSCursor?
[This message has been edited by Dalgo (edited 03-09-2001).]