[window center];
[NSApp activateIgnoringOtherApps:YES];
[window performSelector:@selector(makeKeyAndOrderFront:) withObject:self afterDelay:0.0];
[window center];
[NSApp activateIgnoringOtherApps:YES];
[window performSelector:@selector(makeKeyAndOrderFront:) withObject:self afterDelay:0.0];