(alignment is funky but it allows colons to align when pasting into Xcode)
- (void)showAlert:(NSString *)msg withTitle:(NSString *)title { // autoreleased alert NSAlert *alert = [NSAlert alertWithMessageText:title defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:msg]; [alert beginSheetModalForWindow:(NSWindow *)window modalDelegate:self didEndSelector:nil contextInfo:NULL]; }