swarm.collections.defaultmember.protocol.html

来自「set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用」· HTML 代码 · 共 224 行

HTML
224
字号
<HTML><HEAD><TITLE>DefaultMember</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="Collections Library"HREF="swarm.collections.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="CompareFunction"HREF="swarm.collections.comparefunction.protocol.html"><LINKREL="NEXT"TITLE="ForEach"HREF="swarm.collections.foreach.protocol.html"></HEAD><BODYCLASS="REFENTRY"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.collections.comparefunction.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference II. Collections Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.collections.foreach.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.COLLECTIONS.DEFAULTMEMBER.PROTOCOL">DefaultMember</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN6603"></A><H2>Name</H2>DefaultMember&nbsp;--&nbsp; Methods for setting and getting the default member in a collection.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN6606"></A><H2>Description</H2><P> When this option is set, the initial value of all new members will be set to the member value given (otherwise the default is nil).  This option gives a convenient way to distinguish members which have never been set from any other valid member value, which could include nil. This option may be reset after array creation only if some setting for the option was given at create time.  (The initial, explicitly set value can still be the default nil, but a value must be set explicitly for the option to be resettable later).  The get message for this option always retrieves the current setting, but this value has no effect except when the count of an array is increased, so that new members need to be initialized.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN6609"></A><H2>Protocols adopted by DefaultMember</H2><P>None</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN6612"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN6614"></A><H3>Phase: Setting</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.DEFAULTMEMBER.METHOD.PS.M730"></A><P></P>- (void)<BCLASS="FUNCPROTOTYPE">setDefaultMember:</B> <VARCLASS="PDPARAM">memberValue</VAR> <BR><P></P></DIV></LI></UL></DIV><DIVCLASS="REFSECT2"><ANAME="AEN6626"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.DEFAULTMEMBER.METHOD.PU.M360"></A><P></P>- <BCLASS="FUNCPROTOTYPE">getDefaultMember</B><BR><P></P></DIV></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.collections.comparefunction.protocol.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.collections.foreach.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">CompareFunction</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.collections.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">ForEach</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?