10 #ifndef NS_RETURNS_INNER_POINTER
11 #define NS_RETURNS_INNER_POINTER
13 #import <AppKit/AppKit.h>
34 VuoApp_splashWindow = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, VuoApp_splashWindowWidth, VuoApp_splashWindowHeight)
35 styleMask:NSBorderlessWindowMask
36 backing:NSBackingStoreBuffered
45 [VuoApp_splashWindow center];
47 [VuoApp_splashWindow makeKeyAndOrderFront:nil];
49 [NSCursor.pointingHandCursor push];
69 NSEvent *
event = [VuoApp_splashWindow nextEventMatchingMask:NSAnyEventMask
70 untilDate:[NSDate dateWithTimeIntervalSinceNow:1./60]
71 inMode:NSDefaultRunLoopMode
73 [VuoApp_splashWindow sendEvent:event];
81 double splashHoldSeconds = 1;
85 NSEvent *
event = [VuoApp_splashWindow nextEventMatchingMask:NSAnyEventMask
86 untilDate:[NSDate dateWithTimeIntervalSinceNow:splashHoldSeconds]
87 inMode:NSDefaultRunLoopMode
89 [VuoApp_splashWindow sendEvent:event];
96 [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){
97 context.duration = splashFadeSeconds;
98 VuoApp_splashWindow.animator.alphaValue = 0;
99 } completionHandler:^{
100 [VuoApp_splashWindow close];
101 VuoApp_splashWindow = nil;
104 [NSCursor.pointingHandCursor pop];