Revision: 9173 http://sourceforge.net/p/skim-app/code/9173 Author: hofman Date: 2016-10-15 20:42:51 +0000 (Sat, 15 Oct 2016) Log Message: ----------- check for NSString rater than NSURL class
Modified Paths: -------------- trunk/SKMainDocument.m Modified: trunk/SKMainDocument.m =================================================================== --- trunk/SKMainDocument.m 2016-10-14 16:29:17 UTC (rev 9172) +++ trunk/SKMainDocument.m 2016-10-15 20:42:51 UTC (rev 9173) @@ -1958,7 +1958,7 @@ id source = [args objectForKey:@"Source"]; BOOL showBar = [[args objectForKey:@"ShowReadingBar"] boolValue]; NSInteger options = showBar ? SKPDFSynchronizerShowReadingBarMask : 0; - if ([source isKindOfClass:[NSURL class]]) + if ([source isKindOfClass:[NSString class]]) source = [NSURL fileURLWithPath:source]; else if ([source isKindOfClass:[NSURL class]] == NO) source = nil; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit