<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="">Totally reasonable since that is a limitation that will cause subclassers to not be able to implement that even outside of Foundation.<div class=""><br class=""></div><div class="">What would help most for unit testing what you have so far?</div><div class=""><br class=""></div><div class="">I have a few init?(coder:) implementations that should match the implementations on darwin; primarily I was focused on getting the plist types done first and then moving onto the other classes.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 26, 2015, at 6:01 AM, Luke Howard &lt;<a href="mailto:lukeh@padl.com" class="">lukeh@padl.com</a>&gt; 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="">Another language thing I ran into ā€“ using classForKeyedArchiver/classForCoder is impossible because declarations from extensions cannot be overridden yet.<div class=""><br class=""></div><div class="">For example Iā€™d like to do:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">internal</span> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">class</span> _NSCFString : <span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">NSMutableString</span> {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">ā€¦&nbsp;</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp;&nbsp;<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">override</span> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">var</span> classForCoder: <span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">AnyClass</span> {</div><div style="margin: 0px; line-height: normal; color: rgb(79, 129, 135);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">return</span><span style="font-variant-ligatures: no-common-ligatures;" class=""> </span>NSMutableString<span style="font-variant-ligatures: no-common-ligatures;" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">self</span></div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; }</div><div style="margin: 0px; line-height: normal;" class="">}</div><div class=""><br class=""></div></div><div class="">There are a few ways I can work around it but perhaps we can put these extensions directly on NSObject for now?</div><div class=""><br class=""></div><div class="">ā€” Luke</div></div></div></div></div></blockquote></div><br class=""></div></body></html>