⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swarm.defobj.setinitialvalue.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>SetInitialValue</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="Defobj Library"HREF="swarm.defobj.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="Serialization"HREF="swarm.defobj.serialization.protocol.html"><LINKREL="NEXT"TITLE="Symbol"HREF="swarm.defobj.symbol.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.defobj.serialization.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference I. Defobj Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.defobj.symbol.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.DEFOBJ.SETINITIALVALUE.PROTOCOL">SetInitialValue</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN4666"></A><H2>Name</H2>SetInitialValue&nbsp;--&nbsp; Create using initial value from an existing object.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN4669"></A><H2>Description</H2><P> The SetInitialValue type defines a variety of messages relating to an initial or unmodifiable value established as part of an object.  This message is typically provided when creation of a new object might be more easily accomplished by copying the value of an existing object rather than establishing a new value from scratch.  As with the copy message, precisely what is considered the value of an existing object to copy is defined only by the particular object type that supplies these messages.</P><P> If an object has a value which can be established at create time, it is often useful (and can also enable significant optimization) to declare that no further modification will occur to this value during further use of the object.  A restriction against modifying a value is referred to as a "read-only" restriction.  This type supplies messages to declare a read-only restriction along with any initial value.  For some object types, a read-only restriction can also be added or removed after an object has already been created.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4673"></A><H2>Protocols adopted by SetInitialValue</H2><P>None</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4676"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN4678"></A><H3>Phase: Creating</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.DEFOBJ.SETINITIALVALUE.METHOD.PC.M776"></A><P></P>- (void)<BCLASS="FUNCPROTOTYPE">setInitialValue:</B> <VARCLASS="PDPARAM">initialValue</VAR> <BR> The setInitialValue: message requires another object as its argument, from which the value of a newly created object is to be taken.  Unlike a copy message, the object used as the source of the new value need not have the identical type as the new object to be created.  A particular object type defines the types of initial value objects which it can accept, along with any special conversion or interpretation it might apply to such a value.<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.defobj.serialization.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.defobj.symbol.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Serialization</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.defobj.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Symbol</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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