Anyone met the same thing? Our plugin for Adobe AI has a custom cursor. It’s a PNG file together with an XML description, and the PNG and XML are declared in a .r REZ file. sUser->SetCursor(resID, iResourceManager); is used to set the cursor. And it can work on AI CS6, but after installing the 16.0.3 update package, there was no custom cursor, but only the default black arrow instead. I know this update makes some changes to the cursor since it supports high definition screen resolution, but the AI cursors can resize with no details missing. What can I do to add our cursor resources?
Share
I just dealt with this problem yesterday. The
AIResourceManagerHandleappeared to be valid, but the call tosAIUser->SetCursor()returned aCANTerror no matter what I tried. The cursorPNGIID was correct,XML_hot spot ID was correct, etc. I even tried making a variety of higher resolution PNGs for a cursor and that didn’t help either. There’s even a newer version of the SDK, but I ran a diff on it and the only changes were some unrelated comments.I just worked around it by using platform code for Mac, and stuck with Illustrator code for Windows. We already had a cursor class, which made it much easier (you may want to make one if you don’t have one already). It ended up looking something like this:
Depending on how your project is configured, you may need to set your source files to be compiled as Objective-C++ and/or
#import <AppKit/AppKit.h>somewhere.