mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Minor macos-x compatibility tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25467 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e923c3fcc9
commit
5878db6b7e
2 changed files with 14 additions and 19 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-09-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSNotificationCenter.m: Wrap posting of notification in
|
||||
exception handler to log exceptions.
|
||||
|
||||
2007-08-24 23:53-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Headers/Foundation/NSPort.h: Removed commented out declaration
|
||||
|
|
|
@ -1053,9 +1053,6 @@ static NSNotificationCenter *default_center = nil;
|
|||
*/
|
||||
unlockNCTable(TABLE);
|
||||
|
||||
#if 0
|
||||
NS_DURING
|
||||
#endif
|
||||
/*
|
||||
* Now send all the notifications.
|
||||
*/
|
||||
|
@ -1065,28 +1062,21 @@ static NSNotificationCenter *default_center = nil;
|
|||
o = GSIArrayItemAtIndex(a, count).ext;
|
||||
if (o->next != 0)
|
||||
{
|
||||
(*o->method)(o->observer, o->selector, notification);
|
||||
NS_DURING
|
||||
{
|
||||
(*o->method)(o->observer, o->selector, notification);
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"Problem posting notification: %@", localException);
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
}
|
||||
}
|
||||
lockNCTable(TABLE);
|
||||
GSIArrayEmpty(a);
|
||||
unlockNCTable(TABLE);
|
||||
|
||||
#if 0
|
||||
NS_HANDLER
|
||||
{
|
||||
/*
|
||||
* If we had a problem - release memory before going on.
|
||||
*/
|
||||
lockNCTable(TABLE);
|
||||
GSIArrayEmpty(a);
|
||||
unlockNCTable(TABLE);
|
||||
RELEASE(notification);
|
||||
[localException raise];
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
#endif
|
||||
|
||||
RELEASE(notification);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue