From: helge Date: Tue, 19 Jul 2005 10:12:52 +0000 (+0000) Subject: added support for key-pathes in string bindings X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a18b9ddeb9711629e9fec9a0d4cc581f4b5ef9f4;p=sope added support for key-pathes in string bindings git-svn-id: http://svn.opengroupware.org/SOPE/trunk@914 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-core/NGExtensions/ChangeLog b/sope-core/NGExtensions/ChangeLog index 10e9505a..2bdef4af 100644 --- a/sope-core/NGExtensions/ChangeLog +++ b/sope-core/NGExtensions/ChangeLog @@ -1,3 +1,9 @@ +2005-07-19 Helge Hess + + * FdExt.subproj/NSString+misc.m: use -valueForKeyPath: instead of + -valueForKey: to retrieve string binding patterns (might give issues + in case you had keys with dots inside before) (v4.5.163) + 2005-07-18 Helge Hess * FdExt.subproj/NSNull+misc.m: added -isNotEmpty to all objects. Its diff --git a/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m b/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m index 7d14a220..0c1963cc 100644 --- a/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m +++ b/sope-core/NGExtensions/FdExt.subproj/NSString+misc.m @@ -32,20 +32,11 @@ - (NSString *)valueForStringBinding:(NSString *)_key { if (_key == nil) return nil; - return [[self valueForKey:_key] stringValue]; + return [[self valueForKeyPath:_key] stringValue]; } @end /* NSObject(StringBindings) */ -@implementation NSDictionary(StringBindings) - -- (NSString *)valueForStringBinding:(NSString *)_key { - if (_key == nil) return nil; - return [[self objectForKey:_key] stringValue]; -} - -@end /* NSDictionary(StringBindings) */ - @implementation NSString(misc) - (NSSet *)bindingVariables diff --git a/sope-core/NGExtensions/Version b/sope-core/NGExtensions/Version index 4fd1a360..68ffe6c6 100644 --- a/sope-core/NGExtensions/Version +++ b/sope-core/NGExtensions/Version @@ -1,6 +1,6 @@ # version -SUBMINOR_VERSION:=162 +SUBMINOR_VERSION:=163 # v4.3.115 requires libFoundation v1.0.59 # v4.2.72 requires libEOControl v4.2.39