<?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>brosinski.com/stephan &#187; objective-c</title>
	<atom:link href="http://www.brosinski.com/stephan/tag/objective-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brosinski.com/stephan</link>
	<description></description>
	<lastBuildDate>Sun, 05 Sep 2010 20:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<cloud domain='www.brosinski.com' port='80' path='/stephan/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Xcode Tips</title>
		<link>http://www.brosinski.com/stephan/2009/09/04/xcode-tips/</link>
		<comments>http://www.brosinski.com/stephan/2009/09/04/xcode-tips/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 14:05:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.brosinski.com/stephan/?p=73</guid>
		<description><![CDATA[I spend quite some time with Xcode lately. So this is partly a reminder for myself. When you create new class files the default template&#8217;s header comment includes a __MyCompanyName__ placeholder. The only way to configure it seems to be issuing this command in Terminal: defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" =   "brosinski.com";}' CTRL+2 opens the [...]]]></description>
			<content:encoded><![CDATA[<p>I spend quite some time with Xcode lately. So this is partly a reminder for myself.</p>
<ul>
<li>When you create new class files the default template&#8217;s header comment includes a __MyCompanyName__ placeholder. The only way to configure it seems to be issuing this command in Terminal:<br />
<code>defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" =   "brosinski.com";}'</code></li>
<li>CTRL+2 opens the symbol dropdown so you can quickly switch between functions</li>
<li>Inserting <code>#pragma mark</code> allows you to add grouping descriptions to the symbol list, TODO: comments also show up there</li>
<li>Option + Command + up switches between header and implementation file</li>
<li>Here is a <a href="http://cocoasamurai.blogspot.com/2008/02/complete-xcode-keyboard-shortcut-list.html">nice cheat</a> sheet for all Xcode keyboard shortcuts</li>
</ul>
<p>You can also re-create your favorite key bindings by creating a file called PBKeyBinding.dict  in ~/Library/KeyBindings/ and adding something like this:</p>
<pre>
{
    "^$K" = (
        "selectLine:",
        "cut:"
    );
    "^$D" = (
        "selectLine:",
        "copy:",
        "moveToEndOfLine:",
        "insertNewline:",
        "paste:"
    );
}
</pre>
<p>This will enable CTRL+SHIFT+K to kill a line and CTRL+SHIFT+D to duplicate a line. <a href="http://www.erasetotheleft.com/post/mac-os-x-key-bindings/">Here</a> is a nice description of how this system works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brosinski.com/stephan/2009/09/04/xcode-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
