Hot Door CORE Forum
custom cursor observations - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3)
+--- Thread: custom cursor observations (/showthread.php?tid=69)



custom cursor observations - Rick Johnson - 04-20-2016

In running the sample projects to see how cursors are selected and tracked, it appears that the virtual void hdi::core::Cursor::enable() function will use an Adobe cursor if one of them is named the same as your cursor. Is this how it works? I found that I sometimes have to clean my project and/or restart Xcode to coax it into fetching the new image if the PNG changed and the code hasn't, which hindered discovering this apparent behavior.

I also have a related tip to pass along: Telegraphics offers a free Photoshop plugin to read and write Windows ICO and CUR resources. Since I don't know of a way to access resources in my old Mac RSRC files, I was able to read them from Windows projects and save them back as PNG.


RE: custom cursor observations - garrett - 04-21-2016

Xcode will not perform the Rez build step when a resource file changes (I believe it simply doesn't monitor them for changes, like it does with source code files). As such, any time you change a resource file you must clean the project before building.


RE: custom cursor observations - Rick Johnson - 04-21-2016

Does CORE give preference to an Adobe cursor over a user-supplied one of the same name, or is that just a quirk in AI? It strikes me that it would be more useful to load the user's cursor if the user went to the trouble of making and defining it.


RE: custom cursor observations - garrett - 04-23-2016

The behavior in that scenario is very likely undefined. Who knows which resource will be chosen when two of the same type with the same name are available within the same app. So always name your resources uniquely (e.g. prefix them with a project name or similar).