[swift-corelibs-dev] small nit in NSKeyedArchiver.swift

Luke Howard lukeh at padl.com
Wed Jul 20 01:16:51 CDT 2016


Posting to mailing list as I’m not able to test this right now, but I suspect this patch should be applied –

diff --git a/Foundation/NSKeyedArchiver.swift b/Foundation/NSKeyedArchiver.swift
index d070a15..fdcedae 100644
--- a/Foundation/NSKeyedArchiver.swift
+++ b/Foundation/NSKeyedArchiver.swift
@@ -193,7 +193,7 @@ public class NSKeyedArchiver : NSCoder {
             }
         } else {
             success = CFPropertyListWrite(plist, self._stream as! CFWriteStream,
-                                          kCFPropertyListOpenStepFormat, 0, nil) > 0
+                                          kCFPropertyListXMLFormat_v1_0, 0, nil) > 0
         }
         
         return success

as the Openstep format is not supported by CF for writing.

--
www.lukehoward.com
soundcloud.com/lukehoward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160720/59cfc653/attachment.html>


More information about the swift-corelibs-dev mailing list