Added alert panel.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19490 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-06-10 05:20:56 +00:00
parent fdb6848bfb
commit db62ca916d
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2004-06-10 01:28 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: [Gorm testInterface] added code in the exception
handler to show an alert panel when an exception occurs along
with a warning (and the actual exception, of course). This
allows users to see what the issue was when trying to test
the interface.
2004-06-07 23:59 Gregory John Casamento <greg_casamento@yahoo.com>
* GormInspectorsManager.m: [GormConnectionInspector setObject:]

3
Gorm.m
View file

@ -775,6 +775,9 @@ NSString *GormResizeCellNotification = @"GormResizeCellNotification";
// reset the application after the error.
NSLog(@"Error while testing interface: %@",
[localException reason]);
NSRunAlertPanel(NULL, [NSString stringWithFormat: @"Problem testing interface. Make sure connections are to appropriate objects. Exception: %@",
[localException reason]],
_(@"OK"), NULL, NULL);
[self endTesting: self];
}
NS_ENDHANDLER;