This is some of the code I have:
[window setLevel:kCGScreenSaverWindowLevel];
[window setOpaque:NO];
[window setStyleMask:0];
[window setBackgroundColor:[NSColor colorWithCalibratedWhite:0.0 alpha:0.3]];
[window setAlphaValue:0];
[window setFrame:[window frameRectForContentRect:[[window screen] frame]] display:YES animate:YES];
[window makeKeyAndOrderFront:self];
[[window animator] setAlphaValue:1.0];
I was just wondering if there was any way to compact it, all of those commands to my window. Any ways to improve it too?