I've set the cursor for my NSButton using the technique in this question, and that works great initially. However, it breaks as soon as the window is hidden and then re-shown (this is a menubar app, so the window gets hidden every time the user clicks outside the window). At that point, it goes back to the normal cursor and will never go back to the pointing hand.
Is there a way to permanently set the cursor for an NSButton?
Update:
I've found that it isn't, so much, the showing/hiding of the window that kills the cursor as it is moving to another app and then moving back. If I simply show/hide the window, by clicking on the menubar icon over and over, the cursor always behaves. But as soon as I click to another app and then click back, the cursor is forever broken (until I kill and re-start the app).