Return to Snippet

Revision: 11724
at February 16, 2009 12:47 by Netzach


Initial Code
- (void)fadeInWindow:(NSWindow*)window{
	float alpha = 0.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-In Of A NSWindow With Objective-C

Initial Tags
animation

Initial Language
Objective C