Revision: 3040
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3040&view=rev
Author:   hofman
Date:     2007-10-13 11:47:05 -0700 (Sat, 13 Oct 2007)

Log Message:
-----------
Use keypath instead of tag.

Modified Paths:
--------------
    trunk/SKTemplateParser.m

Modified: trunk/SKTemplateParser.m
===================================================================
--- trunk/SKTemplateParser.m    2007-10-13 18:14:13 UTC (rev 3039)
+++ trunk/SKTemplateParser.m    2007-10-13 18:47:05 UTC (rev 3040)
@@ -739,7 +739,7 @@
             
         } else if (type == SKCollectionTagType) {
             
-            keyValue = [object safeValueForKeyPath:tag];
+            keyValue = [object safeValueForKeyPath:[tag keyPath];
             if ([keyValue respondsToSelector:@selector(objectEnumerator)]) {
                 NSEnumerator *itemE = [keyValue objectEnumerator];
                 id nextItem, item = [itemE nextObject];
@@ -763,7 +763,7 @@
             unsigned int i, count = [matchStrings count];
             NSArray *subtemplate = nil;
             
-            keyValue = [object safeValueForKeyPath:tag];
+            keyValue = [object safeValueForKeyPath:[tag keyPath]];
             count = [matchStrings count];
             subtemplate = nil;
             for (i = 0; i < count; i++) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to