📄 x1476.html
字号:
<HTML><HEAD><TITLE>Porting from 1.3 or 1.3.1 to 1.4</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="Swarm Changes and Compatibility"HREF="swarm.compatibility.sgml.preface.html"><LINKREL="PREVIOUS"TITLE="Porting from 1.4 or 1.4.1 to 2.0"HREF="x1463.html"><LINKREL="NEXT"TITLE="Porting from 1.2 to 1.3"HREF="x1509.html"></HEAD><BODYCLASS="SECT1"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="x1463.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Swarm Changes and Compatibility</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x1509.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AEN1476">3. Porting from 1.3 or 1.3.1 to 1.4</A></H1><P></P><UL><LI><P>The <TTCLASS="CLASSNAME">Arguments</TT> protocol has moved from the <TTCLASS="LITERAL">objectbase</TT> library to the <TTCLASS="LITERAL">defobj</TT> library. If you were subclassing from the <TTCLASS="CLASSNAME">Arguments</TT> class you will now need to subclass from <TTCLASS="CLASSNAME">Arguments_c</TT> and import the <TTCLASS="FILENAME">defobj.h</TT> header file.</P></LI><LI><P>The <TTCLASS="CLASSNAME">ListShuffler</TT> class has been moved from <TTCLASS="LITERAL">simtools</TT> to <TTCLASS="LITERAL">collections</TT>. You must now import <TTCLASS="FILENAME">collections.h</TT>. Alternatively you can use the new <TTCLASS="FUNCTION">[beginPermuted: aZone]</TT> index creation method on a collection from the <AHREF="swarm.collections.collection.protocol.html"> <TTCLASS="CLASSNAME">Collection</TT></A> protocol in place of the <TTCLASS="CLASSNAME">ListShuffler</TT> protocol. </P></LI><LI><P>The <TTCLASS="LITERAL">-setLabels::</TT> and <TTCLASS="LITERAL">-setColors::</TT> methods in the <AHREF="swarm.gui.histogram.protocol.html"><TTCLASS="CLASSNAME">Histogram</TT></A> protocol now each must be given a new <TTCLASS="LITERAL">count: (unsigned)labelCount</TT> and <TTCLASS="LITERAL">count: (unsigned)colorCount</TT> argument, respectively. So, for example, the code formerly in <TTCLASS="FILENAME">MarketObserverSwarm.m</TT> in the <SPANCLASS="APPLICATION">market</SPAN> application was:<TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="90%"><TR><TD><PRECLASS="PROGRAMLISTING">[useHisto setLabels: pred];[useHisto setColors: predictorColors];</PRE></TD></TR></TABLE> is now changed to:<TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="90%"><TR><TD><PRECLASS="PROGRAMLISTING">[useHisto setLabels: pred count: numPredictorsToShow];[useHisto setColors: predictorColors count: numPredictorsToShow];</PRE></TD></TR></TABLE> </P></LI></UL></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="x1463.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x1509.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Porting from 1.4 or 1.4.1 to 2.0</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.compatibility.sgml.preface.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Porting from 1.2 to 1.3</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -