+ (NSArray *)effectClasses
{
- NSMutableArray *classes = [NSArray arrayWithObjects:
+ NSMutableArray *classes = [[NSArray arrayWithObjects:
NSClassFromString(@"ITCutWindowEffect"),
NSClassFromString(@"ITDissolveWindowEffect"),
NSClassFromString(@"ITSlideHorizontallyWindowEffect"),
NSClassFromString(@"ITZoomWindowEffect"),
NSClassFromString(@"ITSpinWindowEffect"),
NSClassFromString(@"ITSpinAndZoomWindowEffect"),
- nil];
+ nil] mutableCopy];
NSOpenGLView *view = [[NSOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 1, 1) pixelFormat:[NSOpenGLView defaultPixelFormat]];
if ([view openGLContext]) {
}
[view release];
- return classes;
+ return [classes autorelease];
}
- (id)initWithWindow:(NSWindow *)window