+2005-07-19 Helge Hess <helge.hess@opengroupware.org>
+
+ * 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 <helge.hess@opengroupware.org>
* FdExt.subproj/NSNull+misc.m: added -isNotEmpty to all objects. Its
- (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