Revision: 3953
http://skim-app.svn.sourceforge.net/skim-app/?rev=3953&view=rev
Author: hofman
Date: 2008-06-03 11:04:27 -0700 (Tue, 03 Jun 2008)
Log Message:
-----------
fix error in a previous commit: get correct range for dot in key path.
Modified Paths:
--------------
trunk/SKTemplateParser.m
Modified: trunk/SKTemplateParser.m
===================================================================
--- trunk/SKTemplateParser.m 2008-06-02 12:11:16 UTC (rev 3952)
+++ trunk/SKTemplateParser.m 2008-06-03 18:04:27 UTC (rev 3953)
@@ -870,7 +870,7 @@
- (id)safeValueForKeyPath:(NSString *)keyPath {
unsigned int atIndex = [keyPath rangeOfString:@"@"].location;
if (atIndex != NSNotFound) {
- unsigned int dotIndex = [keyPath rangeOfString:@"@" options:0
range:NSMakeRange(atIndex + 1, [keyPath length])].location;
+ unsigned int dotIndex = [keyPath rangeOfString:@"." options:0
range:NSMakeRange(atIndex + 1, [keyPath length] - atIndex - 1)].location;
if (dotIndex != NSNotFound) {
static NSSet *arrayOperators = nil;
if (arrayOperators == nil)
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit