Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我将鼠标悬停在对象上时,如何将光标设置为指向手。我试过[NSCursor pointingHandCursor];了,但没有用:(
[NSCursor pointingHandCursor];
我可以像这样隐藏它, [NSCursor hide];但这不是我想要的。
[NSCursor hide];
[NSCursor pointingHandCursor];返回游标实例。
您必须使用适当的方法设置 if[[NSCursor pointingHandCursor]set]
[[NSCursor pointingHandCursor]set]