OSX compatibility tweaks inspiered by testplant

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35555 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-09-10 05:18:09 +00:00
parent 5c55a3f1bd
commit ab65e628d3
5 changed files with 50 additions and 13 deletions

View file

@ -105,7 +105,19 @@ static NSDate *theFuture = nil;
- (void) fire
{
[target performSelector: selector withObject: argument];
NS_DURING
{
[target performSelector: selector withObject: argument];
}
NS_HANDLER
{
NSLog(@"*** NSRunLoop ignoring exception '%@' (reason '%@') "
@"raised during performSelector... with target %p "
@"and selector '%@'",
[localException name], [localException reason], target,
NSStringFromSelector([target selector]));
}
NS_ENDHANDLER
}
- (id) initWithSelector: (SEL)aSelector