diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 64298bf85d0..7c7db453029 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -1003,6 +1003,12 @@ static NSCursor *getImageCursor(GHOST_TStandardCursor shape, NSString *name, NSP return cursors[index]; } +/* busyButClickableCursor is an undocumented NSCursor API, but + * has been in use since at least OS X 10.4 and through 10.9. */ +@interface NSCursor (Undocumented) ++ (NSCursor *)busyButClickableCursor; +@end + NSCursor *GHOST_WindowCocoa::getStandardCursor(GHOST_TStandardCursor shape) const { @autoreleasepool { @@ -1046,6 +1052,11 @@ NSCursor *GHOST_WindowCocoa::getStandardCursor(GHOST_TStandardCursor shape) cons return [NSCursor pointingHandCursor]; case GHOST_kStandardCursorDefault: return [NSCursor arrowCursor]; + case GHOST_kStandardCursorWait: + if ([NSCursor respondsToSelector:@selector(busyButClickableCursor)]) { + return [NSCursor busyButClickableCursor]; + } + return nullptr; case GHOST_kStandardCursorKnife: return getImageCursor(shape, @"knife.pdf", NSMakePoint(6, 24)); case GHOST_kStandardCursorEraser: