<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">NSKeyedUnarchiver is working, at least for a few classes for which I’ve implemented initWithCoder:. Promisingly encoding and decoding nested Swift classes works, using name mangling we discussed yesterday.</div><div class=""><br class=""></div><div class="">It does use NSPropertyListSerialization to read the entire property list into memory, whereas it appears Foundation incrementally decodes the archive directly. I’m not sure if I’ll have time to implement incremental decoding but at least this should be a start.</div><div class=""><br class=""></div>— Luke<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 24 Dec 2015, at 1:51 PM, Luke Howard via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m planning to use this for now:<div class=""><br class=""></div><div class=""><a href="https://github.com/lhoward/swift-corelibs-foundation/commit/177e7d9f945db58217edec70d90d5cb53cba0245" class="">https://github.com/lhoward/swift-corelibs-foundation/commit/177e7d9f945db58217edec70d90d5cb53cba0245</a></div><div class=""><br class=""></div><div class="">Noted that it won’t work for non-public symbols, but at least I can see how far I can get with NSKeyedArchiver/Unarchiver in the meantime.</div><div class=""><br class=""></div><div class="">— Luke</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=SR07gluzTtbLn1NkwrRTLsVMtJWgzeIVCZUvV0o3n4-2BeroEjwIbtNeossAoZXIX-2FhtCR6CELSf5jqu4JnFMqezbBpoYpMtovOOYVmI2KAATmgQkrN2-2B00vduWTZIsqYGvke7wlUDOO3F7XZ0zB-2FrZ3WWUus5k-2B1-2FCI-2BOxUoi9j9LqdXUbWovLzFdOTg5VgaLB9-2FZnwSj5fYSereG66AKnA-3D-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</div>
_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: 'Akzidenz-Grotesk BQ'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">--</div><div class=""><font face="Akzidenz-Grotesk BQ" size="3" class=""><a href="http://www.lukehoward.com" class="">www.lukehoward.com</a><br class="">soundcloud.com/lukehoward</font></div></div></span></div></span></div></div></div>
</div>
<br class=""></div></body></html>