<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Angus Thinks... &#187; XCode</title>
	<atom:link href="http://www.malcolmhardie.com/weblogs/angus/tag/xcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.malcolmhardie.com/weblogs/angus</link>
	<description>SQLEditor for Mac OS X, Life and general thoughts</description>
	<lastBuildDate>Fri, 30 Jul 2010 00:32:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>XCode function popup</title>
		<link>http://www.malcolmhardie.com/weblogs/angus/2008/10/16/xcode-function-popup/</link>
		<comments>http://www.malcolmhardie.com/weblogs/angus/2008/10/16/xcode-function-popup/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 21:38:48 +0000</pubDate>
		<dc:creator>Angus Hardie</dc:creator>
				<category><![CDATA[Writing Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.malcolmhardie.com/weblogs/angus/?p=295</guid>
		<description><![CDATA[I love the XCode function popup, particularly in Objective C, because I can add #pragma mark comments to divide up the list. Unfortunately languages that aren&#8217;t C derived don&#8217;t offer #pragma, so I missed these little dividers Then I noticed &#8230; <a href="http://www.malcolmhardie.com/weblogs/angus/2008/10/16/xcode-function-popup/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I love the XCode function popup, particularly in Objective C, because I can add <strong>#pragma mark</strong> comments to divide up the list.</p>
<p>Unfortunately languages that aren&#8217;t C derived don&#8217;t offer <strong>#pragma</strong>, so I missed these little dividers</p>
<p>Then I noticed that a comment that contained <strong>FIXME</strong> had appeared in the list too, looking just as if it were a #pragma mark entry</p>
<p>Looking at the XCode documentation reveals that XCode will also search code comments for a range of keywords and use them to control entries in the function popup. And it will do this for  Java, Perl, Python, and Ruby (as well as the C based C, Objective-C and C++).</p>
<p>This means I can write in other interesting languages and still get my function popup dividers.</p>
<p>Just prefix the comment line with one of the following:</p>
<ul class="nested">
<li class="nested li"><code>MARK:</code></li>
<li class="nested li"><code>TODO:</code></li>
<li class="nested li"><code>FIXME:</code></li>
<li class="nested li"><code>!!!:</code></li>
<li class="nested li"><code>???</code></li>
</ul>
<p>and the remainder of that line will appear in the list.</p>
<p>There is more in the <a href="http://developer.apple.com/documentation/developertools/Conceptual/XcodeWorkspace/600-The_Text_Editor/chapter_6_section_2.html#//apple_ref/doc/uid/TP40002679-SW10">Apple Xcode tools documentation</a></p>
<p>(It looks like there has been some discussion of this already (<a href="http://www.nabble.com/pragma-mark-with-python-in-xcode--td18879370.html">1</a>,<a href="http://www.tomonagatokuyama.com/txt/2008/xcode-special-comment-keywords/">2</a>,<a href="http://tungchingkai.blogspot.com/2008/05/xcode-workspace.html">3</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.malcolmhardie.com/weblogs/angus/2008/10/16/xcode-function-popup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
