Revision: 12918 http://sourceforge.net/p/skim-app/code/12918 Author: hofman Date: 2022-05-11 09:42:24 +0000 (Wed, 11 May 2022) Log Message: ----------- allow skim notes data as xml plist
Modified Paths: -------------- trunk/QuickLook-Skim/SKQLConverter.m trunk/SkimNotes/SKNUtilities.m Modified: trunk/QuickLook-Skim/SKQLConverter.m =================================================================== --- trunk/QuickLook-Skim/SKQLConverter.m 2022-05-11 09:22:54 UTC (rev 12917) +++ trunk/QuickLook-Skim/SKQLConverter.m 2022-05-11 09:42:24 UTC (rev 12918) @@ -173,7 +173,7 @@ if (ch == 0xD) { @try { notes = [NSKeyedUnarchiver unarchiveObjectWithData:data]; } @catch (id e) {} - } else if (ch == 0xA) { + } else if (ch == 0xA || ch == 0x0) { notes = [NSPropertyListSerialization propertyListWithData:data options:NSPropertyListImmutable format:NULL error:NULL]; } return [notes isKindOfClass:[NSArray class]] ? notes : nil; Modified: trunk/SkimNotes/SKNUtilities.m =================================================================== --- trunk/SkimNotes/SKNUtilities.m 2022-05-11 09:22:54 UTC (rev 12917) +++ trunk/SkimNotes/SKNUtilities.m 2022-05-11 09:42:24 UTC (rev 12918) @@ -207,7 +207,7 @@ if (ch == 0xD) { @try { noteDicts = [NSKeyedUnarchiver unarchiveObjectWithData:data]; } @catch (id e) {} - } else if (ch == 0xA) { + } else if (ch == 0xA || ch == 0x0) { noteDicts = [NSPropertyListSerialization propertyListFromData:data mutabilityOption:NSPropertyListMutableContainers format:NULL errorDescription:NULL]; if ([noteDicts isKindOfClass:[NSArray class]]) { for (NSMutableDictionary *dict in noteDicts) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit