mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-19 17:50:47 +00:00
* EOControl/EOKeyValueCoding.m: Add declartions for method
replacement hack. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30109 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
febeda42a3
commit
456c230856
2 changed files with 47 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-09 David Ayers <ayers@fsfe.org>
|
||||
|
||||
* EOControl/EOKeyValueCoding.m: Add declartions for method
|
||||
replacement hack.
|
||||
|
||||
2010-04-09 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* EOInterface/EOPopUpAssociation.m
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
Date: January 2002
|
||||
|
||||
Author: David Ayers <ayers@fsfe.org>
|
||||
Date: February 2003
|
||||
|
||||
Date: February 2003-2010
|
||||
|
||||
<abstract></abstract>
|
||||
|
||||
|
@ -50,9 +49,9 @@ RCS_ID("$Id$")
|
|||
#include <Foundation/NSEnumerator.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSHashTable.h>
|
||||
#include <Foundation/NSKeyValueCoding.h>
|
||||
#include <Foundation/NSMapTable.h>
|
||||
#include <Foundation/NSObjCRuntime.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSValue.h>
|
||||
#else
|
||||
|
@ -94,6 +93,20 @@ initialize(void)
|
|||
|
||||
@interface GDL2KVCNSObject
|
||||
@end
|
||||
@interface GDL2KVCNSObject (NSKeyValueCoding) <NSObject>
|
||||
- (void) unableToSetNilForKey: (NSString*)aKey;
|
||||
- (BOOL) validateValue: (id*)aValue
|
||||
forKey: (NSString*)aKey
|
||||
error: (NSError**)anError;
|
||||
- (BOOL) validateValue: (id*)aValue
|
||||
forKeyPath: (NSString*)aKey
|
||||
error: (NSError**)anError;
|
||||
- (id) valueForKey: (NSString*)aKey;
|
||||
- (id) valueForKeyPath: (NSString*)aKey;
|
||||
- (id) valueForUndefinedKey: (NSString*)aKey;
|
||||
- (NSDictionary*) valuesForKeys: (NSArray*)keys;
|
||||
@end
|
||||
|
||||
@implementation GDL2KVCNSObject
|
||||
|
||||
/* This is what -base(add) will call. It should invoke what the API
|
||||
|
@ -129,6 +142,7 @@ initialize(void)
|
|||
const char *type = 0;
|
||||
int off;
|
||||
unsigned size = [aKey length];
|
||||
id self_id = self;
|
||||
|
||||
if (size > 0)
|
||||
{
|
||||
|
@ -170,7 +184,7 @@ initialize(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
GSObjCSetVal(self, [aKey UTF8String], anObject, sel, type, size, off);
|
||||
GSObjCSetVal(self_id, [aKey UTF8String], anObject, sel, type, size, off);
|
||||
}
|
||||
|
||||
|
||||
|
@ -228,6 +242,12 @@ initialize(void)
|
|||
|
||||
@interface GDL2KVCNSArray : NSObject
|
||||
@end
|
||||
@interface GDL2KVCNSArray (NSArray)
|
||||
- (NSUInteger) count;
|
||||
- (NSArray *)resultsOfPerformingSelector: (SEL)sel
|
||||
withObject: (NSString *)key
|
||||
defaultResult: (id)defaultResult;
|
||||
@end
|
||||
@implementation GDL2KVCNSArray
|
||||
|
||||
/**
|
||||
|
@ -528,6 +548,17 @@ initialize(void)
|
|||
|
||||
@interface GDL2KVCNSDictionary : NSObject
|
||||
@end
|
||||
@interface GDL2KVCNSDictionary (NSDictionary)
|
||||
- (NSArray*) allKeys;
|
||||
- (NSArray*) allValues;
|
||||
- (id) objectForKey: (id)aKey;
|
||||
- (NSUInteger) count;
|
||||
- (void)smartTakeValue: (id)object
|
||||
forKeyPath: (NSString *)keyPath;
|
||||
- (void)takeValue: (id)value
|
||||
forKeyPath: (NSString *)keyPath
|
||||
isSmart: (BOOL)smartFlag;
|
||||
@end
|
||||
@implementation GDL2KVCNSDictionary
|
||||
|
||||
/**
|
||||
|
@ -828,6 +859,13 @@ initialize(void)
|
|||
|
||||
@interface GDL2KVCNSMutableDictionary : NSDictionary
|
||||
@end
|
||||
@interface GDL2KVCNSMutableDictionary (NSMutableDictionary)
|
||||
- (void) removeObjectForKey: (id)aKey;
|
||||
- (void) setObject: (id)anObject forKey: (id)aKey;
|
||||
- (void)takeValue: (id)value
|
||||
forKeyPath: (NSString *)keyPath
|
||||
isSmart: (BOOL)smartFlag;
|
||||
@end
|
||||
@implementation GDL2KVCNSMutableDictionary
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue