I am trying to modify the default I-beam cursor image. I'm using [[[NSCursor IBeamCursor] image] representations]
, passing each one through a CIFilter and adding it to a new image. However, the resulting cursor looks as though it is rendering the low-resolution images.
The High Resolution Guidelines say:
For custom cursors, you can pass a multirepresentation TIFF to the NSCursor class method
initWithImage:hotSpot:
.
So I would expect this to work. Additionally, if I get the -TIFFRepresentation
of the original image and my modified image, and write them to disk, they both look like multi-page TIFF files with the same size images. What could I be doing wrong?
I have a somewhat-temporary solution: manually call -setSize:
on each image representation, dividing the pixel height and width by the screen's scale factor. However, this technique doesn't seem like it will work ideally with multiple screens.