Revision: 12923
          http://sourceforge.net/p/skim-app/code/12923
Author:   hofman
Date:     2022-05-12 09:50:44 +0000 (Thu, 12 May 2022)
Log Message:
-----------
Generically try to deserialize property list, no matter what the byte is.

Modified Paths:
--------------
    trunk/QuickLook-Skim/SKQLConverter.m
    trunk/SkimNotes/SKNUtilities.m

Modified: trunk/QuickLook-Skim/SKQLConverter.m
===================================================================
--- trunk/QuickLook-Skim/SKQLConverter.m        2022-05-12 09:44:47 UTC (rev 
12922)
+++ trunk/QuickLook-Skim/SKQLConverter.m        2022-05-12 09:50:44 UTC (rev 
12923)
@@ -173,7 +173,7 @@
     if (ch == 0xD) {
         @try { notes = [NSKeyedUnarchiver unarchiveObjectWithData:data]; }
         @catch (id e) {}
-    } else if (ch == 0xA || ch == 0x0) {
+    } else {
         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-12 09:44:47 UTC (rev 12922)
+++ trunk/SkimNotes/SKNUtilities.m      2022-05-12 09:50:44 UTC (rev 12923)
@@ -207,7 +207,7 @@
         if (ch == 0xD) {
             @try { noteDicts = [NSKeyedUnarchiver 
unarchiveObjectWithData:data]; }
             @catch (id e) {}
-        } else if (ch == 0xA || ch == 0x0) {
+        } else {
             noteDicts = [NSPropertyListSerialization propertyListWithData:data 
options:NSPropertyListMutableContainers format:NULL error: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

Reply via email to