<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="value" module="max" category="Data">
	<digest>
		Share data between other value objects
	</digest>
	<description>
		Shares data with other <o>value</o> objects of the same name. If you send a message (number, list, or anything else) to one value object, it is set for all value objects with the same 'name' argument. You can get the contents out of a particular <o>value</o> object by sending it a <m>bang</m>.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Data
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				int or float Sets Value, bang Causes Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				int or float Sets Value, bang Causes Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Value Shared by All value a Objects
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="name" optional="0" type="symbol">
			<digest>
				Shared context name
			</digest>
			<description>
				Sets the name of the <o>value</o> object. Other <o>value</o> objects with the same name will share it's contents.
			</description>
		</objarg>
		<objarg name="initial" optional="1" type="anything">
			<digest>
				Initial contents
			</digest>
			<description>
				Additional arguments after the naming symbol initialize the contents of <o>value</o>. If no additional arguments are present, <o>value</o> contains nothing.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output the stored value
			</digest>
			<description>
				Sends out the stored message.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Store and share data
			</digest>
			<description>
				Performs the same function as <m>anything</m>.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Store and share data
			</digest>
			<description>
				Performs the same function as <m>anything</m>.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Store and share data
			</digest>
			<description>
				Performs the same function as <m>anything</m>.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Store and share data
			</digest>
			<description>
				The message is stored, to be shared by all other <o>value</o> objects with the same name, even if they are in another patch. A message received in any other <o>value</o> object that has the same name will change the stored value.
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Open windows with shared value objects
			</digest>
			<description>
				Double-clicking on a <o>value</o> object opens all windows containing <o>value</o> objects with the same name.
			</description>
		</method>
		<method name="symbol">
			<arglist>
				<arg name="input" optional="0" type="symbol" />
			</arglist>
			<digest>
				Store and share data
			</digest>
			<description>
				Performs the same function as <m>anything</m>.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="value.png" caption="One value (or any type of message) is shared between all value objects that share the same name" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="float" />
		<seealso name="int" />
		<seealso name="pv" />
		<seealso name="pvar" />
		<seealso name="send" />
		<seealso name="receive" />
		<seealso name="basicchapter16" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="any message">
			<description>
				<m>bang</m> in the inlet causes the stored message to be sent out.
			</description>
		</entry>
	</misc>
</c74object>
