<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Set an object name that doesn&#039;t match the filename?</title>
		<atom:link href="http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 21:16:09 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/#post-43376</guid>
					<title><![CDATA[Set an object name that doesn&#039;t match the filename?]]></title>
					<link>http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/#post-43376</link>
					<pubDate>Wed, 15 Apr 2009 05:56:25 +0000</pubDate>
					<dc:creator>Adam Murray</dc:creator>

					<description>
						<![CDATA[
						<p>In the SDK examples, the times~ object uses this line of code:</p>
<p>class_setname(&#8220;*~&#8221;,&#8221;times~&#8221;); // because the filename on disk is different from the object name in Max</p>
<p>However, this seems obsolete under the new API. I can comment it out and the behavior doesn&#8217;t change.</p>
<p>I wanted to accomplish something similar in an object I was working on, and thought I could use class_alias(), but this causes compile to fail during the linking stage, which seemed odd. </p>
<p>I also tried changing the first param to class_new() to be the name I want but that seems to be ignored.</p>
<p>In the new API, is the only way to use a name that doesn&#8217;t match the project/filename to append to the max-objectmappings.txt or audio-objectmappings.txt file (or perhaps add an additional custom mappings file)? Or am I missing something?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/#post-155563</guid>
					<title><![CDATA[Re: Set an object name that doesn&#039;t match the filename?]]></title>
					<link>http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/#post-155563</link>
					<pubDate>Wed, 15 Apr 2009 12:03:16 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Since about Max 4.3 (or so) the xxx-objectmappings.txt file is the official way to go. You will want to put your definitions into something like adam-his-object-mappings-list-or-whatever-you-want-to-name-the-file.txt. The name doesn&#8217;t matter as long as the file has a .txt suffix and is in the init folder and isn&#8217;t a file name that Max might clobber on the next update.</p>
<p>However, offhand I&#8217;m not sure why class_setname() &#038; Co. aren&#8217;t working for you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/#post-155564</guid>
					<title><![CDATA[Re: Set an object name that doesn&#039;t match the filename?]]></title>
					<link>http://cycling74.com/forums/topic/set-an-object-name-that-doesnt-match-the-filename/#post-155564</link>
					<pubDate>Fri, 17 Apr 2009 00:53:01 +0000</pubDate>
					<dc:creator>Adam Murray</dc:creator>

					<description>
						<![CDATA[
						<p>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr>
<td class="SmallText"><b>Peter Castine wrote on Wed, 15 April 2009 05:03</b></td>
</tr>
<tr>
<td class="quote">Since about Max 4.3 (or so) the xxx-objectmappings.txt file is the official way to go. You will want to put your definitions into something like adam-his-object-mappings-list-or-whatever-you-want-to-name-the-file.txt. The name doesn&#8217;t matter as long as the file has a .txt suffix and is in the init folder and isn&#8217;t a file name that Max might clobber on the next update.</td>
</tr>
</table>
</p><p>
Thanks for the info.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

