11 #import <AppKit/AppKit.h>
32 VuoApp_splashWindow = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, VuoApp_splashWindowWidth, VuoApp_splashWindowHeight)
33 styleMask:NSWindowStyleMaskBorderless
34 backing:NSBackingStoreBuffered
43 [VuoApp_splashWindow center];
45 [VuoApp_splashWindow makeKeyAndOrderFront:nil];
47 [NSCursor.pointingHandCursor push];
67 NSEvent *
event = [VuoApp_splashWindow nextEventMatchingMask:NSEventMaskAny
68 untilDate:[NSDate dateWithTimeIntervalSinceNow:1./60]
69 inMode:NSDefaultRunLoopMode
71 [VuoApp_splashWindow sendEvent:event];
79 double splashHoldSeconds = 1;
83 NSEvent *
event = [VuoApp_splashWindow nextEventMatchingMask:NSEventMaskAny
84 untilDate:[NSDate dateWithTimeIntervalSinceNow:splashHoldSeconds]
85 inMode:NSDefaultRunLoopMode
87 [VuoApp_splashWindow sendEvent:event];
94 [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){
95 context.duration = splashFadeSeconds;
96 VuoApp_splashWindow.animator.alphaValue = 0;
97 } completionHandler:^{
98 [VuoApp_splashWindow close];
99 VuoApp_splashWindow = nil;
102 [NSCursor.pointingHandCursor pop];