Based on a Stack Overflow question, - https://stackoverflow.com/questions/12079531/cant-change-the-mouse-cursor-of-a-nstextfield I've managed to get it to work by doing this:
objective-c (void)mouseEntered:(NSEvent *)event {
self.mouseInRect = YES;
}
(void)mouseExited:(NSEvent *)event {
self.mouseInRect = NO;
}
(void)mouseMoved:(NSEvent *)event {
[super mouseMoved:event];
if (self.mouseInRect) {
[[NSCursor arrowCursor] set];
}
}
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: