runModal like the old alert from Changeset 127. [NSApp runModalForWindow:] calls [window center], so we can remove it.

This commit is contained in:
catlan committed 2008-03-01 09:22:39 +00:00
1 parent 07462e570b
commit fcf471d08f
1 file changed
+2 -2
+2 -2
View File
@@ -30,8 +30,7 @@
+ (void)promptWithHostBundle:(NSBundle *)hb delegate:(id)d
{
id prompt = [[[self class] alloc] initWithHostBundle:hb delegate:d];
[[prompt window] center];
[prompt showWindow:self];
[NSApp runModalForWindow:[prompt window]];
}
- (void)awakeFromNib
@@ -117,6 +116,7 @@
[[SUUserDefaults standardUserDefaults] setBool:shouldSendProfile forKey:SUSendProfileInfoKey];
[delegate updatePermissionPromptFinishedWithResult:([sender tag] == 1 ? SUAutomaticallyUpdate : SUDoNotAutomaticallyUpdate)];
[[self window] close];
[NSApp stopModal];
[self autorelease];
}