]> err.no Git - sope/blobdiff - sope-core/NGExtensions/NGRuleEngine.subproj/NGRuleContext.m
allow kvc pathes in rule values
[sope] / sope-core / NGExtensions / NGRuleEngine.subproj / NGRuleContext.m
index 7e38945d4037e43a2f304aadb5644bdbfa4a0c43..c3ef5fcc9d9f996597f7acb8637a8c3df1badfdb 100644 (file)
@@ -1,5 +1,6 @@
 /*
-  Copyright (C) 2003-2004 SKYRIX Software AG
+  Copyright (C) 2003-2006 SKYRIX Software AG
+  Copyright (C) 2006      Helge Hess
 
   This file is part of SOPE.
 
     [self takeValue:[_values objectAtIndex:i] forKeyPath:_valkp];
 
     /* calculate the rule value */
-    ruleValue = [self valueForKey:_kp];
+    ruleValue = [self valueForKeyPath:_kp];
     [results addObject:(ruleValue != nil ? ruleValue : (id)[NSNull null])];
   }
   return results;