Update Objective-C style guide to 2.12:

- Refer to the correct section on avoiding exceptions
This commit is contained in:
mmentovai 2009-04-17 17:48:25 +00:00
parent 71619d34e3
commit a764d2becf
2 changed files with 8 additions and 10 deletions

View File

@ -4,7 +4,7 @@
<p align="right">
Revision 2.11
Revision 2.12
</p>
@ -329,14 +329,15 @@ Revision 2.11
<STYLEPOINT title="Exceptions">
<SUMMARY>
Format exceptions with each <code>@</code> label on its own line and a
space between the <code>@</code> label and the opening brace '{', as
well as between the <code>@catch</code> and the caught object
declaration.
space between the <code>@</code> label and the opening brace
(<code>{</code>), as well as between the <code>@catch</code> and the
caught object declaration.
</SUMMARY>
<BODY>
<p>
If you must use Obj-C exceptions (please see <a href="#Exceptions">Exceptions</a> for reasons why you <b>should
not</b> be using exceptions) format them as follows:
If you must use Obj-C exceptions, format them as follows. However, see
<a href="#Avoid_Throwing_Exceptions">Avoid Throwing Exceptions</a> for
reasons why you <b>should not</b> be using exceptions.
</p>
<CODE_SNIPPET>
@try {
@ -1429,7 +1430,7 @@ Revision 2.11
<HR/>
<p align="right">
Revision 2.11
Revision 2.12
</p>

View File

@ -838,12 +838,9 @@ xmlns:fn="http://www.w3.org/2005/xpath-functions">
of the function name in their respective spans.-->
<xsl:template name="print_function_name">
<xsl:param name="text"/>
<span class="internal"><xsl:value-of select="$text"/></span>
<span class="external">
<xsl:call-template name="convert_camel_case_to_lowercase_with_under">
<xsl:with-param name="text" select="$text"/>
</xsl:call-template>
</span>
</xsl:template>
<!-- Given a single word of text convert it from CamelCase to