chapter_3_section_3.html   [plain text]


<html>
    <head>
        <META NAME="Generator" CONTENT="Gutenberg">
		<META NAME="GeneratorVersion" CONTENT="v100.1">
        <META http-equiv="content-type" CONTENT="text/html;charset=iso-8859-1">
        <META NAME = "Copyright" CONTENT="Copyright 2004 Apple Computer, Inc. All Rights Reserved.">
        <TITLE>HeaderDoc Unfettered: Multi-Word Names</TITLE>
        <base target="content">

        <LINK REL="stylesheet" TYPE="text/css" HREF="../Resources/CSS/frameset_styles.css">
        <style type="text/css"></style>
        <script language="JavaScript" src="../Resources/JavaScript/page.js"></script>
    </head>
    
    <BODY bgcolor="#ffffff" onload="initialize_page();"><a name="//apple_ref/doc/uid/TP40001215-CH346-DontLinkElementID_873" title="Multi-Word Names" turn_anchor="no"></a>
        <a name="top"></a>
        <!-- start of header -->
        <!--#include virtual="/includes/framesetheader" -->
        <!-- end of header -->
        
        <!-- start of path -->
<div class="breadcrumb"><a href="http://developer.apple.com/" target="_top">ADC Home</a> &gt; <!--a logicalPath="//apple_ref/doc/uid/TP30000943"  -->Reference Library<!--/a--> &gt; <!--a logicalPath="Unknown"  -->Technology TBD<!--/a--> &gt; <a logicalPath="//apple_ref/doc/uid/TP40001215-CH345" href="../intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001215-CH345">HeaderDoc Unfettered</a> &gt; <a logicalPath="//apple_ref/doc/uid/TP40001215-CH346" href="chapter_3_section_1.html#//apple_ref/doc/uid/TP40001215-CH346">HeaderDoc Tags</a> &gt; </div><br>
<!-- end of path -->
        
        <table width="100%" cellpadding=0 cellspacing=0 border=0 class="mini_nav_text"><tr>
        <td align=left scope="row">

        <!-- insert Show/Hide frames -->
        <script type="text/javascript" language="JavaScript"><!--
  
        if (self != top) {
            // loaded in frames
            document.write('<a href="'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="'+self.location+'" target="_top">Hide TOC</a>');
        }
        else {
            // not loaded frames
            document.write('<a href="../index.html?'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="../index.html?'+self.location+'" target="_top">Show TOC</a>');
        }
        //--></script>
        <!-- end Show/Hide frames -->

        </td><td align=right>
        
        <a href="chapter_3_section_2.html" target="_self">&lt; Previous Page</a><span style="margin-left: 8px"><a href="chapter_3_section_4.html" target="_self">Next Page &gt;</a></span>
        
        </td>
        </tr></table>
        
        <hr>
        
        <br><h2>Multi-Word Names</h2>
<p>Top level HeaderDoc tags, such as <b>@header</b> and <b>@function</b> can
take multi-word names. This is particularly useful for documenting
anonymous types for enumerations, for example. However, HeaderDoc
normally has no way to know whether a line containing multiple words
is a multi-word name or a name followed by a discussion.</p>
<p>There are two ways to get a multi-word name. One way is to
add a discussion tag, like this:</p>
<table><table cellpadding="8" width="100%" bgcolor="#F1F5F9" style="border: 1px solid #C9D1D7;"><tr><td scope="row"><table bgcolor="#F1F5F9" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><pre><code> /*!</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * @enum example enum</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * @discussion This is a test, this is only a test.</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> *</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * Because we included an \@discussion tag, the name of the enum is</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * &#8220;example enum&#8221;.</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> */</code></pre></td><td><code><pre></pre></code></td></tr></table></td></tr></table></table>
<p>The other way is to simply add a line break after the name.</p>
<table><table cellpadding="8" width="100%" bgcolor="#F1F5F9" style="border: 1px solid #C9D1D7;"><tr><td scope="row"><table bgcolor="#F1F5F9" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><pre><code> /*!</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * @enum example enum</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * This is a test, this is only a test.</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> *</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * Because the discussion contains multiple lines, the name of the enum is</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> * &#8220;example enum&#8221;.</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> */</code></pre></td><td><code><pre></pre></code></td></tr></table></td></tr></table></table>

        <br><br> 
        
        <table width="100%" cellpadding=0 cellspacing=0 border=0 class="mini_nav_text"><tr>
        <td align=left scope="row">

        <!-- insert Show/Hide frames -->
        <script type="text/javascript" language="JavaScript"><!--
           
        if (self != top) {
            // loaded in frames
            document.write('<a href="'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="'+self.location+'" target="_top">Hide TOC</a>');
        }
        else {
            // not loaded frames
            document.write('<a href="../index.html?'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="../index.html?'+self.location+'" target="_top">Show TOC</a>');
        }
        //--></script>
        <!-- end Show/Hide frames -->

        </td><td align=right>
        
        <a href="chapter_3_section_2.html" target="_self">&lt; Previous Page</a><span style="margin-left: 8px"><a href="chapter_3_section_4.html" target="_self">Next Page &gt;</a></span>
        
        </td>
        </tr></table>

        <br><hr><p class="content_text"> <!--#if expr="0=1" -->&#169; 1999, 2004 Apple Computer, Inc. All Rights Reserved. (<!--#endif -->Last updated: 2004-05-27<!--#if expr="0=1" -->)<!--#endif --></p>

        
        <!-- start of footer -->
        <!--#include virtual="/includes/framesetfooter" -->
        <!-- end of footer -->
    </BODY>
</html>