<?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="onecopy" module="max" category="Files">
	<digest>
		Prevent multiple copies of the same patcher from being opened
	</digest>
	<description>
		Use the <o>onecopy</o> object inside a patcher that you want to place in the extras folder for inclusion in the Extras menu. When the patcher's name is chosen using the Extras menu, its window will be brought to the front instead of opened a second time if it has already been loaded. The patch will be loaded if it is not currently open. The <o>onecopy</o> object cooperates with the Extras menu to ensure that only one copy of the patcher is opened at a time. However, opening the patcher containing a <o>onecopy</o> object by choosing <b>Open...</b> from the File menu will open additional copies.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Files
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<!--OUTLETS-->
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="onecopy.png" caption="Use onecopy to prevent multiple copies of the same patch from being opened from the Extras menu" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="thispatcher" />
		<seealso name="pcontrol" />
	</seealsolist>
	<misc name="Output">
		<entry name="(Behavioral)">
			<description>
				<o>onecopy</o> includes the patcher, within which it resides, in the Extras menu and ensures that only one copy of the patcher is opened at a time.
			</description>
		</entry>
	</misc>
</c74object>
