summaryrefslogtreecommitdiff
blob: 55130a58091235bb1f6f32576282f27339310f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
--- sope-core/NGExtensions/FdExt.subproj/GNUmakefile	2009-11-26 00:58:48.403972479 +0100
+++ sope-core/NGExtensions/FdExt.subproj/GNUmakefile.new	2009-11-26 01:27:23.983967320 +0100
@@ -14,6 +14,7 @@
 	NSCalendarDate+misc.m		\
 	NSCalendarDate+matrix.m		\
 	NSData+gzip.m			\
+	NSDictionary+KVC.m		\
 	NSData+misc.m			\
 	NSDictionary+misc.m		\
 	NSEnumerator+misc.m		\
--- sope-core/NGExtensions/FdExt.subproj/NSDictionary+KVC.m	1970-01-01 04:00:00 +0400
+++ sope-core/NGExtensions/FdExt.subproj/NSDictionary+KVC.m.new	2008-07-04 15:03:58 +0500
@@ -0,0 +1,57 @@
+/*
+  Copyright (C) 2000-2008 SKYRIX Software AG
+
+  This file is part of SOPE.
+
+  SOPE is free software; you can redistribute it and/or modify it under
+  the terms of the GNU Lesser General Public License as published by the
+  Free Software Foundation; either version 2, or (at your option) any
+  later version.
+
+  SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+  License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with SOPE; see the file COPYING.  If not, write to the
+  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+  02111-1307, USA.
+*/
+
+#if GNUSTEP_BASE_LIBRARY
+
+#import "common.h"
+#import "NSDictionary+KVC.h"
+
+@implementation NSDictionary(KVC)
+
+// TODO: it should be addressed to gnustep-base
+
+- (id)valueForUndefinedKey:(NSString *)key
+{
+  return nil;
+}
+
+- (id)handleQueryWithUnboundKey:(NSString *)key
+{
+  return nil;
+}
+
+- (void)setValue:(id)value forUndefinedKey:(NSString *)key
+{
+  return;
+}
+
+- (void)handleTakeValue:(id)value forUnboundKey:(NSString *)key
+{
+  return;
+}
+
+@end /* NSDictionary(KVC) */
+
+void __link_NSDictionary_KVC() {
+  __link_NSDictionary_KVC();
+}
+
+#endif
--- sope-core/NGExtensions/NGExtensions/NSDictionary+KVC.h	1970-01-01 04:00:00 +0400
+++ sope-core/NGExtensions/NGExtensions/NSDictionary+KVC.h.new	2008-07-04 15:05:55 +0500
@@ -0,0 +1,39 @@
+/*
+  Copyright (C) 2000-2008 SKYRIX Software AG
+
+  This file is part of SOPE.
+
+  SOPE is free software; you can redistribute it and/or modify it under
+  the terms of the GNU Lesser General Public License as published by the
+  Free Software Foundation; either version 2, or (at your option) any
+  later version.
+
+  SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+  License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with SOPE; see the file COPYING.  If not, write to the
+  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+  02111-1307, USA.
+*/
+
+#ifndef __NGExtensions_NSDictionary_KVC_H__
+#define __NGExtensions_NSDictionary_KVC_H__
+
+#import <Foundation/NSDictionary.h>
+
+@interface NSDictionary(KVC)
+
+- (id)valueForUndefinedKey:(NSString *)key;
+
+- (id)handleQueryWithUnboundKey:(NSString *)key;
+
+- (void)setValue:(id)value forUndefinedKey:(NSString *)key;
+
+- (void)handleTakeValue:(id)value forUnboundKey:(NSString *)key;
+
+@end
+
+#endif /* __NGExtensions_NSDictionary_KVC_H__ */