Return to Snippet

Revision: 11723
at February 16, 2009 12:46 by Netzach


Initial Code
- (void)fadeOutWindow:(NSWindow*)window{
	float alpha = 1.0;
	[window setAlphaValue:alpha];
	[window makeKeyAndOrderFront:self];
	for (int x = 0; x < 10; x++) {
		alpha -= 0.1;
		[window setAlphaValue:alpha];
		[NSThread sleepForTimeInterval:0.020];
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
Animate A Fade-Out Of A NSWindow With Objective-C

Initial Tags
animation

Initial Language
Objective C