avoid adding +load as an override

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@29965 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-03-15 13:20:26 +00:00
parent 601409fef6
commit a0d4e91907
3 changed files with 7 additions and 28 deletions

View file

@ -743,11 +743,6 @@ fromInsertionInEditingContext: (EOEditingContext *)editingContext
@end
@implementation GDL2CDNSObject
+ (void)load
{
GDL2_Activate([self class], YES);
}
// when you enable the NSDebugMLLogs here you will have a loop. dave
- (EOClassDescription *)classDescription
{

View file

@ -96,12 +96,6 @@ initialize(void)
@end
@implementation GDL2KVCNSObject
+ (void)load
{
GDL2_Activate([self class], YES);
}
/* This is what -base(add) will call. It should invoke what the API
specifies should be overridden. */
- (void) setNilValueForKey: (NSString*)aKey
@ -236,11 +230,6 @@ initialize(void)
@end
@implementation GDL2KVCNSArray
+ (void)load
{
GDL2_Activate([self class], YES);
}
/**
* EOKeyValueCoding protocol<br/>
* This overrides NSObjects implementation of this method.
@ -541,12 +530,6 @@ initialize(void)
@end
@implementation GDL2KVCNSDictionary
+ (void)load
{
GDL2_Activate([self class], YES);
}
/**
* Returns the object stored in the dictionary for this key.
* Unlike Foundation, this method may return objects for keys other than
@ -847,11 +830,6 @@ initialize(void)
@end
@implementation GDL2KVCNSMutableDictionary
+ (void)load
{
GDL2_Activate([self class], YES);
}
/**
* Method to augment the NSKeyValueCoding implementation
* to account for added functionality such as quoted key paths.

View file

@ -133,7 +133,7 @@ GDL2_Activate(Class cls, BOOL isInstance)
}
void
GDL2_ActivateAllGDL2Categories(void)
GDL2_ActivateAll(void)
{
/* EOKeyValueCoding */
GDL2_Activate([GDL2KVCNSObject class], YES);
@ -146,6 +146,12 @@ GDL2_ActivateAllGDL2Categories(void)
}
@implementation NSObject (GDL2_Activate)
+(void)load
{
GDL2_ActivateAll();
}
@end
@implementation NSObject (NSObjectPerformingSelector)