📄 swarm.compatibility.sgml.preface.html
字号:
<HTML><HEAD><TITLE>Swarm Changes and Compatibility</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.53"><LINKREL="HOME"TITLE="Documentation Set for Swarm 2.1.1"HREF="set.html"><LINKREL="UP"TITLE="Reference Guide for Swarm 2.1.1"HREF="book930.html"><LINKREL="PREVIOUS"TITLE="Preface"HREF="swarm.reference.sgml.preface.html"><LINKREL="NEXT"TITLE="Porting from 1.4 or 1.4.1 to 2.0"HREF="x1463.html"></HEAD><BODYCLASS="PREFACE"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Documentation Set for Swarm 2.1.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="swarm.reference.sgml.preface.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x1463.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="PREFACE"><H1><ANAME="SWARM.COMPATIBILITY.SGML.PREFACE">Swarm Changes and Compatibility</A></H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT>1. <AHREF="swarm.compatibility.sgml.preface.html#AEN1454">Porting from 2.0 or 2.0.1 to 2.1</A></DT><DT>2. <AHREF="x1463.html">Porting from 1.4 or 1.4.1 to 2.0</A></DT><DT>3. <AHREF="x1476.html">Porting from 1.3 or 1.3.1 to 1.4</A></DT><DT>4. <AHREF="x1509.html">Porting from 1.2 to 1.3</A></DT><DT>5. <AHREF="x1520.html">Porting from 1.1 to 1.2</A></DT><DD><DL><DT>5.1. <AHREF="x1520.html#AEN1522">Major changes</A></DT><DT>5.2. <AHREF="x1520.html#AEN1534">Porting Guide</A></DT><DT>5.3. <AHREF="x1520.html#AEN1548">Porting example: <SPANCLASS="APPLICATION">heatbugs</SPAN></A></DT><DT>5.4. <AHREF="x1520.html#AEN1586">Porting example: <SPANCLASS="APPLICATION">mousetrap</SPAN></A></DT></DL></DD><DT>6. <AHREF="x1613.html">Porting from 1.0.5 to 1.1</A></DT><DD><DL><DT>6.1. <AHREF="x1613.html#AEN1615">Major changes</A></DT><DT>6.2. <AHREF="x1613.html#AEN1641">Porting guide</A></DT><DT>6.3. <AHREF="x1613.html#AEN1690">Porting example: <SPANCLASS="APPLICATION">heatbugs</SPAN></A></DT></DL></DD><DT>7. <AHREF="x1797.html">Porting from 1.0.4 to 1.0.5</A></DT><DT>8. <AHREF="x1804.html">Porting from 1.0.3 to 1.0.4</A></DT><DT>9. <AHREF="x1817.html">Porting from 1.0.2 to 1.0.3</A></DT><DT>10. <AHREF="x1830.html">Porting from 1.0.0 to 1.0.1</A></DT><DT>11. <AHREF="x1840.html">Beta to 1.0.0</A></DT></DL></DIV><TABLECLASS="SIDEBAR"BORDER="1"CELLPADDING="5"><TR><TD><DIVCLASS="SIDEBAR"><P><B>Notes on Porting</B></P><P>New versions provide new features, but may have the unfortunate side-effect of breaking many existing applications. This document is intended to provide a step-by-step guide to updating your Swarm applications to use the latest version as quickly and painlessly as possible. </P><P>This document contains detailed examples for porting versions equal to, or later than, Swarm 1.0.5. </P><P>Users trying to port from versions <ICLASS="EMPHASIS">earlier</I> than 1.0.5, are advised to first view the compatibility section of the 1.0.5 swarmdocs. First perform those changes in sequence, (i.e. if you have apps compatible with Swarm 1.0.3 - first make the 1.0.3 => 1.0.4 changes, followed by the 1.0.4 => 1.0.5 changes) and then perform the changes described here. You may notice that some of the changes overlap as earlier versions may have merely deprecated some functionality, whilst later versions actually disabled it. This has been done to phase new functionality in, and old functionality out over several releases, so the user isn't hit with an enormous burden every minor release. </P><P>We intend that most application changes should be covered, but given that we can never know in advance how a user has employed the software, we cannot guarantee that all potential application changes will be covered in the document explicitly. </P><P><ICLASS="EMPHASIS">Key for changes:</I> <P></P><UL><LI><P>(*) = absolutely necessary changes (if not performed, will fail to compile)</P></LI><LI><P>(x) = not-strictly necessary, but highly recommended changes (deprecated coding practice, or will produce a compiler warning, if not performed)</P></LI></UL> </P></DIV></TD></TR></TABLE><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AEN1454">1. Porting from 2.0 or 2.0.1 to 2.1</A></H1><P></P><UL><LI><P>Backward-compatibility Random module protocol names have been removed. (Generators have the name suffix "gen" and distributions have the suffix "Dist".) </P></LI><LI><P>The Archiver method <TTCLASS="FUNCTION">getWithZone:object:</TT> was renamed to <TTCLASS="FUNCTION">getWithZone:key:</TT>. </P></LI></UL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="swarm.reference.sgml.preface.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x1463.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Preface</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book930.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Porting from 1.4 or 1.4.1 to 2.0</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -