开发者

Unhide cursor in Cocoa screensaver

开发者 https://www.devze.com 2023-01-17 01:15 出处:网络
I’m developing a Mac OS X screensaver that uses WebView. WebView loads fla开发者_如何学编程sh with a map. I want to let a user move the map and resize it (flash map has appropriate controls). I’ve r

I’m developing a Mac OS X screensaver that uses WebView. WebView loads fla开发者_如何学编程sh with a map. I want to let a user move the map and resize it (flash map has appropriate controls). I’ve redefine mouseMoved: method so the screensaver does not exit on mouse move. But the mouse cursor is still hidden. It’s visible only on mouse drag. I’ve tried [NSCursor unhide] but it does not work. How can I unhide it?

Thanks in advance.


I know this question has been asked a while ago but I would suggest using a built-in function to hide the cursor and let OS X handles the unhide. There is a class method

[NSCursor setHiddenUntilMouseMoves:YES];
0

精彩评论

暂无评论...
验证码 换一张
取 消