Workaround for runitme bug.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-06-26 14:04:09 +00:00
parent defe914b98
commit 44f485568a
3 changed files with 29 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2010-06-26 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSObject.m: Implement methods from the Object(NSObjectCompat)
category for NSZombie. This is a workaround for what seems to be an
objc runtime bug (that category is being added to NSZombie even though
NSZombie is not a subclass of Object).
2010-06-25 Richard Frith-Macdonald <rfm@gnu.org> 2010-06-25 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSURL.m: Implement keyed coding * Source/NSURL.m: Implement keyed coding

View file

@ -78,7 +78,6 @@
#import <Foundation/NSKeyedArchiver.h> #import <Foundation/NSKeyedArchiver.h>
#import <Foundation/NSKeyValueCoding.h> #import <Foundation/NSKeyValueCoding.h>
#import <Foundation/NSKeyValueObserving.h> #import <Foundation/NSKeyValueObserving.h>
#import <Foundation/NSLocale.h>
#import <Foundation/NSLock.h> #import <Foundation/NSLock.h>
#import <Foundation/NSMapTable.h> #import <Foundation/NSMapTable.h>
#import <Foundation/NSMethodSignature.h> #import <Foundation/NSMethodSignature.h>

View file

@ -2423,6 +2423,14 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
{ {
return (Class)isa; return (Class)isa;
} }
- (void) dealloc
{
GSLogZombie(self, _cmd);
}
- (void) description
{
GSLogZombie(self, _cmd);
}
- (Class) originalClass - (Class) originalClass
{ {
return NSMapGet(zombieMap, (void*)self); return NSMapGet(zombieMap, (void*)self);
@ -2455,6 +2463,20 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
[allocationLock unlock]; [allocationLock unlock];
return [c instanceMethodSignatureForSelector: aSelector]; return [c instanceMethodSignatureForSelector: aSelector];
} }
- (void) release
{
GSLogZombie(self, _cmd);
}
- (BOOL) respondsToSelector: (SEL)aSel
{
GSLogZombie(self, _cmd);
return NO;
}
- (id) retain
{
GSLogZombie(self, _cmd);
return self;
}
@end @end
@implementation GSContentAccessingProxy @implementation GSContentAccessingProxy