Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I'm trying to change the cursor in an OS X app with the following code (copied from Xcode docs):
NSCursor* c = [NSCursor pointingHandCursor]; [c set];
It is not taking effect and I'm not sure what I am doing wrong here. Any ideas are appreciated.
On an NSView you can try
- (void)resetCursorRects { [super resetCursorRects]; [self addCursorRect:[self bounds] cursor:[NSCursor pointingHandCursor]]; }
This should work also on NSWIndow but I have not not tested
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.