Revision: 5100
http://skim-app.svn.sourceforge.net/skim-app/?rev=5100&view=rev
Author: hofman
Date: 2008-12-28 16:08:14 +0000 (Sun, 28 Dec 2008)
Log Message:
-----------
remove dependency on category, is also more efficient
Modified Paths:
--------------
trunk/SKFDFParser.m
Modified: trunk/SKFDFParser.m
===================================================================
--- trunk/SKFDFParser.m 2008-12-28 15:34:30 UTC (rev 5099)
+++ trunk/SKFDFParser.m 2008-12-28 16:08:14 UTC (rev 5100)
@@ -39,7 +39,6 @@
#import "SKFDFParser.h"
#import <ApplicationServices/ApplicationServices.h>
#import "NSScanner_SKExtensions.h"
-#import "NSCharacterSet_SKExtensions.h"
#import "NSGeometry_SKExtensions.h"
#import "SKStringConstants.h"
#import <SkimNotes/SkimNotes.h>
@@ -372,7 +371,7 @@
NSRange r = [da rangeOfString:@"/" options:NSBackwardsSearch
range:NSMakeRange(0, location)];
if (r.location != NSNotFound) {
[scanner setScanLocation:NSMaxRange(r)];
- if ([scanner scanCharactersFromSet:[NSCharacterSet
nonWhitespaceAndNewlineCharacterSet] intoString:&fontName] &&
+ if ([scanner scanUpToCharactersFromSet:[NSCharacterSet
whitespaceAndNewlineCharacterSet] intoString:&fontName] &&
[scanner scanFloat:&fontSize] &&
[scanner scanString:@"Tf" intoString:NULL] &&
[scanner scanLocation] == location + 2) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit