<?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>iOS Developer Tips Blog &#187; Xcode</title>
	<atom:link href="http://iPhoneDeveloperTips.com/category/xcode/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com</link>
	<description>iOS Developer Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:09:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Xcode 4 : Show Invisibles to Find Tabs and Spaces</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-show-invisibles.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-show-invisibles.html#comments</comments>
		<pubDate>Wed, 14 Dec 2011 09:33:34 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=10725</guid>
		<description><![CDATA[Every now and again I experience some rather odd code formatting behavior when I copy/paste from Xcode into another editor, an email or this blog. I&#8217;m never quite sure just where the weirdness originates, most likely an errant tab that was inadvertently introduced somewhere on the way. For example, this screenshot from Xcode looks rather [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and again I experience some rather odd code formatting behavior when I copy/paste from Xcode into another editor, an email or this blog. I&#8217;m never quite sure just where the weirdness originates, most likely an errant tab that was inadvertently introduced somewhere on the way.</p>
<p>For example, this screenshot from Xcode looks rather innocuous:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/12/invisibles1.gif" alt="" title="invisibles1" width="584" height="214" class="alignnone size-full wp-image-10726" /><br />
<span id="more-10725"></span></p>
<p>However, if I copy and paste the same code into the editor that I am using to write this post, the formatting looks as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>applicationDidFinishLaunching<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIApplication <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>application 
<span style="color: #002200;">&#123;</span>   
  <span style="color: #11740a; font-style: italic;">// Create and initialize the window</span>
	window <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIWindow alloc<span style="color: #002200;">&#93;</span> initWithFrame<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIScreen mainScreen<span style="color: #002200;">&#93;</span> bounds<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
  window.backgroundColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>UIColor blackColor<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Create test view controller</span>
	vc <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>MainViewController alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span>;
&nbsp;
  <span style="color: #002200;">&#91;</span>window makeKeyAndVisible<span style="color: #002200;">&#93;</span>;
  <span style="color: #002200;">&#91;</span>window addSubview<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>vc view<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #002200;">&#125;</span></pre></div></div>

<p>Within Xcode 4, in the <strong>Editor</strong> drop-down menu there is an option to <strong>Show Invisibles</strong>. Once enabled, you can see where tabs and spaces are embedded within the code. </p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/12/invisibles2.gif" alt="" title="invisibles2" width="562" height="212" class="alignnone size-full wp-image-10735" /></p>
<p>Space characters are shown as a diamond shape &#8211; the red boxes (I added) highlight where tab characters are embedded in the source code, resulting in the funky formatting shown above. Replace the tabs with spaces and all is well.</p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-show-invisibles.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcode 4 : Related Files List</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-related-files-list.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-related-files-list.html#comments</comments>
		<pubDate>Wed, 26 Oct 2011 08:12:59 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=10521</guid>
		<description><![CDATA[With Xcode 4 you can quickly access an assortment of files related to your project through the Related Files option in the Jump Bar. The screenshot below shows the related files based on the file that is open in the editor pane &#8211; the red box in the upper left highlights the icon to open [...]]]></description>
			<content:encoded><![CDATA[<p>With Xcode 4 you can quickly access an assortment of files related to your project through the <strong>Related Files</strong> option in the Jump Bar. The screenshot below shows the related files based on the file that is open in the editor pane &#8211; the red box in the upper left highlights the icon to open the related files list.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/relatedFiles1.gif" alt="" title="relatedFiles1" width="478" height="331" class="alignnone size-full wp-image-10522" /><br />
<span id="more-10521"></span></p>
<p>Notice in the figure above one of the options is the Includes list, which provides quick access to files included in both the interface (.h) and the implementation (.m) file that is open. Here&#8217;s something interesting to try &#8211; click on a source file (.m) and choose the Assembly option. This offers a look at the assembly language code created by the compiler, makes one appreciate higher level languages&#8230;</p>
<p>The contents of the related files changes (ever so slighty) based on which Navigator is active and which entry in active navigator is selected. For example, in the screenshot that follows the Project navigator is active (red box) and the project entry is selected (yellow box) &#8211; in this scenario, the related files shown are only the recently opened files and the unsaved files.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/RelatedFiles2.gif" alt="" title="RelatedFiles2" width="428" height="126" class="alignnone size-full wp-image-10523" /></p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-related-files-list.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcode 4 : Jump Bar Tips and Tricks</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-jump-bar-tips-and-tricks.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-jump-bar-tips-and-tricks.html#comments</comments>
		<pubDate>Wed, 19 Oct 2011 06:30:43 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=10419</guid>
		<description><![CDATA[The Jump Bar is the navigation area at the top of the source editor pane, which is highlighted in red in the figure below: There is a popup menu available by clicking on each separate section of the Jump Bar. For example, clicking on the title SandboxAppDelegate.m will bring up a list of all the [...]]]></description>
			<content:encoded><![CDATA[<p>The Jump Bar is the navigation area at the top of the source editor pane, which is highlighted in red in the figure below:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/jumpbar1.gif" alt="" title="jumpbar1" width="592" height="169" class="alignnone size-full wp-image-10422" /><br />
<span id="more-10419"></span></p>
<p>There is a popup menu available by clicking on each separate section of the Jump Bar. For example, clicking on the title <strong>SandboxAppDelegate.m</strong> will bring up a list of all the other files stored at the same location in the project hierarchy. Notice in the screenshot below that the file list shown in the popup is the same as shown in the project navigator.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/jumpbar2.gif" alt="" title="jumpbar2" width="595" height="254" class="alignnone size-full wp-image-10423" /><br />
<br/></p>
<h5>Jump Bar Tip #1 &#8211; Sorting </h5>
<p>You can sort the entries in the popup list by Command-clicking the Jump Bar. In the screenshot below is the same popup shown above, however, all the entries are now sorted.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/jumpbar3.gif" alt="" title="jumpbar3" width="216" height="127" class="alignnone size-full wp-image-10427" /><br />
<br/></p>
<h5>Jump Bar Tip #2 &#8211; Type Ahead </h5>
<p>Once a popup is displayed, you can type ahead to narrow the list of entries. This is really handy if you have a long list of files or methods and are looking for a specific entry.</p>
<p>The screenshot below shows the popup for the file list:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/jumpbar4.gif" alt="" title="jumpbar4" width="301" height="110" class="alignnone size-full wp-image-10432" /></p>
<p>As I type characters, the list of the entries narrows based on my search:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/jumpbar5.gif" alt="" title="jumpbar5" width="299" height="75" class="alignnone size-full wp-image-10433" /><br />
<br/></p>
<h5>Jump Bar Tip #3 &#8211; Open in Assistant Editor </h5>
<p>To open a file in the assistant editor, from within the popup showing the file list, Option-click the desired file. If you are viewing a popup of the methods in a file, if you Option-click, the file containing the method will be opened in the assistant editor, and the selected method will be highlighted:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/jumpbar6.gif" alt="" title="jumpbar6" width="525" height="293" class="alignnone size-full wp-image-10435" /></p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-jump-bar-tips-and-tricks.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Xcode 4 : Select and Edit All Variables in Scope</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-select-and-edit-all-variables-in-scope.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-select-and-edit-all-variables-in-scope.html#comments</comments>
		<pubDate>Wed, 05 Oct 2011 08:06:00 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=10191</guid>
		<description><![CDATA[Xcode offers a nice way to highlight all references of a variable within the current scope. First, make sure you have the setting shown below enabled within the Text Editing tab in the Xcode Preferences: Now, select a variable within your code, and notice that all references within the current scope will be highlighted. For [...]]]></description>
			<content:encoded><![CDATA[<p>Xcode offers a nice way to highlight all references of a variable within the current scope. First, make sure you have the setting shown below enabled within the Text Editing tab in the Xcode Preferences:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/xcode-InScope1.gif" alt="" title="xcode-InScope1" width="478" height="290" class="alignnone size-full wp-image-10200" /><br />
<span id="more-10191"></span></p>
<p>Now, select a variable within your code, and notice that all references within the current scope will be highlighted. For example, below I selected (double tapped) username and all references are now underlined.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/xcode-InScope2.gif" alt="" title="xcode-InScope2" width="549" height="258" class="alignnone size-full wp-image-10195" /></p>
<p>In the above figure notice the drop down arrow next to the first instance that I referenced. Tapping this arrow brings up an dialog, given the configuration of my system, the dialog looks as follows:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/xcode-InScope3.gif" alt="" title="xcode-InScope3" width="331" height="113" class="alignnone size-full wp-image-10196" /></p>
<p>The values in your dialog may be different based on your system configuration. </p>
<p>If you choose the Edit All in Scope, Xcode will highlight all references and allow you to change the name of the selected variable. Changes will cascade through to each reference of the variable.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/10/Xcode-Inscope4.gif" alt="" title="Xcode-Inscope4" width="546" height="255" class="alignnone size-full wp-image-10197" /></p>
<p>Using this tip you can quickly change all references to a variable in the current scope, watching the changes take place as you type.</p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-select-and-edit-all-variables-in-scope.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XCode 4 : Project Modernization</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-project-modernization.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-project-modernization.html#comments</comments>
		<pubDate>Wed, 28 Sep 2011 06:12:51 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=10145</guid>
		<description><![CDATA[When opening projects that were created in an earlier version of Xcode, you can update (modernize) project files to ensure projects are stored with the latest Xcode file formats and are in line with the most current features in Xcode. To update a project (if Xcode does not notify you when opening a project): - [...]]]></description>
			<content:encoded><![CDATA[<p>When opening projects that were created in an earlier version of Xcode, you can update (modernize) project files to ensure projects are stored with the latest Xcode file formats and are in line with the most current features in Xcode.</p>
<p>To update a project (if Xcode does not notify you when opening a project):</p>
<p>- Switch to the Project Navigator<br />
<span id="more-10145"></span></p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/09/modernize4.gif" alt="" title="modernize4" width="258" height="156" class="alignnone size-full wp-image-10155" /></p>
<p>- From the Editor menu, choose Modernize Project</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/09/modernize.gif" alt="" title="modernize" width="203" height="187" class="alignnone size-full wp-image-10146" /></p>
<p>Interestingly, when viewing the Editor menu, sometimes an option to Validate Settings (versus Modernize Project) is shown:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/09/modernize2.gif" alt="" title="modernize2" width="207" height="188" class="alignnone size-full wp-image-10147" /></p>
<p>In either case, a dialog box appears listing a number of options you can elect to have updated:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/09/modernize3.gif" alt="" title="modernize3" width="549" height="335" class="alignnone size-full wp-image-10150" /></p>
<p>Once complete, your projects will be compatible with Xcode 4.</p>
<p>One additional option to initiate updating a project is to click the Modernize Project button (shown below) from with the Project Navigator when viewing the Build Settings &#8211; thanks Andrea for the email pointing this out:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/09/modernize5.gif" alt="" title="modernize5" width="146" height="57" class="alignnone size-full wp-image-10167" /></p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-project-modernization.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcode 4 : Fonts and Color Themes</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-fonts-and-color-themes.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-fonts-and-color-themes.html#comments</comments>
		<pubDate>Wed, 21 Sep 2011 06:01:08 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=10015</guid>
		<description><![CDATA[Xcode includes a nice assortment of built-in themes that manage fonts and color selections. To view the available themes: > Xcode &#8211; Preferences > Select Fonts and Colors tab (across the top) > Select a theme on the left menu Below are screenshots of the Default, Sunset and Midnight themes. There is also a Presentation [...]]]></description>
			<content:encoded><![CDATA[<p>Xcode includes a nice assortment of built-in themes that manage fonts and color selections. To view the available themes:</p>
<p>> Xcode &#8211; Preferences<br />
> Select Fonts and Colors tab (across the top)<br />
> Select a theme on the left menu</p>
<p>Below are screenshots of the <strong>Default</strong>, <strong>Sunset</strong> and <strong>Midnight</strong> themes. There is also a <strong>Presentation</strong> theme where the font sizes have been increased, this is handy if you ever need to show your code to others via an overhead projector.<br />
<span id="more-10015"></span></p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/09/colorPrefs.gif" alt="" title="colorPrefs" width="529" height="315" class="alignnone size-full wp-image-10016" /></p>
<h5>Create a New Theme</h5>
<p>You can create a new theme and customize the look however you like &#8211; click the <strong>+</strong> at the bottom left of the preference dialog to create a new theme &#8211; you will be shown a list of available themes to duplicate as a starting point:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/09/spartan.gif" alt="" title="spartan" width="237" height="258" class="alignnone size-full wp-image-10021" /></p>
<h5>Hidden Theme</h5>
<p>There is a theme that is not shown in the original theme list &#8211; look at the figure above, I&#8217;ve drawn a rectangle around <strong>Spartan</strong>, which is only shown when creating a new theme. To give this theme a try, create a new theme and select <strong>Spartan</strong> as the theme to duplicate.</p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-fonts-and-color-themes.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Xcode 4 : Pragma Mark Shortcut</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-pragma-mark-shortcut.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-pragma-mark-shortcut.html#comments</comments>
		<pubDate>Wed, 14 Sep 2011 11:37:56 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=9878</guid>
		<description><![CDATA[In a tip nearly a year ago, Xcode and #pragma mark, I described how to insert pragma mark directives to organize your code. #pragma mark - #pragma mark Initialization Here is how things may look with multiple pragma directives: With Xcode 4, you can now combine both pragma statements into one line: #pragma mark - [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://iOSDeveloperTips.com/images/blank.gif" alt="" /> </p>
<p>In a tip nearly a year ago, <a href="http://iphonedevelopertips.com/xcode/xcode-and-pragma-mark.html" target="_blank">Xcode and #pragma mark</a>, I described how to insert <strong>pragma mark</strong> directives to organize your code.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#pragma mark -</span>
<span style="color: #6e371a;">#pragma mark Initialization</span></pre></div></div>

<p><span id="more-9878"></span></p>
<p>Here is how things may look with multiple pragma directives:</p>
<p><img src="http://iphonedevelopertips.com/wp-content/uploads/2008/09/pragma.png" alt="" /></p>
<p>With Xcode 4, you can now combine both pragma statements into one line:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#pragma mark - Initialization</span></pre></div></div>

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-pragma-mark-shortcut.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Xcode 4 : Remove Older SDK Documentation Sets</title>
		<link>http://iPhoneDeveloperTips.com/xcode/xcode-4-remove-older-sdk-documentation-sets.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/xcode-4-remove-older-sdk-documentation-sets.html#comments</comments>
		<pubDate>Mon, 20 Jun 2011 07:11:22 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=8712</guid>
		<description><![CDATA[I was recently on a mission to clean up the documentation sets that are installed on my system, specifically, OS 3.x docs that I no longer need. The obvious place to look was within the Documentation tab of the Preferences settings. It was the right idea, however, I discovered the &#8220;-&#8221; option to remove a [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently on a mission to clean up the documentation sets that are installed on my system, specifically, OS 3.x docs that I no longer need. The obvious place to look was within the <strong>Documentation</strong> tab of the <strong>Preferences</strong> settings. It was the right idea, however, I discovered the &#8220;-&#8221; option to remove a docset is only available if the documentation has not been installed.<br />
<span id="more-8712"></span></p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/06/docset11.png" alt="" /></p>
<p>To remove a documentation begin by clicking the arrow enclosed in the box on the lower left corner (shown in the red box in the Figure above). </p>
<p>A window will expand showing additional information about the documentation. The <strong>Installed Location</strong> value is a link showing where on your system the documentation is installed. </p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/06/docset2.png" alt="" /></p>
<p>If you click on the link, Finder will open showing the folder with the API document.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/06/docset3.png" alt="" /></p>
<p>Delete the document in Finder and return to Xcode, you&#8217;ll now see the doc set removed from the list.</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/06/docset4.png" alt="" width="590" height="197" /></p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/xcode-4-remove-older-sdk-documentation-sets.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refactoring to Change a Local Variable Name</title>
		<link>http://iPhoneDeveloperTips.com/xcode/refactoring-to-change-a-local-variable-name.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/refactoring-to-change-a-local-variable-name.html#comments</comments>
		<pubDate>Fri, 06 May 2011 09:05:41 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=8281</guid>
		<description><![CDATA[What follows is a trick to refactor a local variable, best used if the variable occurs many times within a local scope. In the screenshot below, I highlighted the local variable dict and then entered Control-Command-T. Notice that each reference to this variable is now highlighted. An important note, you don&#8217;t need to necessarily highlight [...]]]></description>
			<content:encoded><![CDATA[<p>What follows is a trick to refactor a local variable, best used if the variable occurs many times within a local scope. </p>
<p>In the screenshot below,  I highlighted the local variable <strong>dict</strong> and then entered Control-Command-T. Notice that each reference to this variable is now highlighted. An important note, you don&#8217;t need to necessarily highlight the first instance of the variable for this to work.<br />
<span id="more-8281"></span></p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/05/refactor1.png" alt="" width="590" height="204" /></p>
<p>Once all the variables are highlighted, make the change to the new name and you&#8217;ll see all references updated in unison, see the figure below:</p>
<p><img src="http://iPhoneDeveloperTips.com/wp-content/uploads/2011/05/refactor2.png" alt="" /></p>
<p>Tap your mouse anywhere outside the variable to complete the change.</p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/refactoring-to-change-a-local-variable-name.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Undo Xcode PNG Optimizations Using pngcrush</title>
		<link>http://iPhoneDeveloperTips.com/xcode/undo-xcode-png-optimizations-using-pngcrush.html</link>
		<comments>http://iPhoneDeveloperTips.com/xcode/undo-xcode-png-optimizations-using-pngcrush.html#comments</comments>
		<pubDate>Wed, 09 Mar 2011 07:04:53 +0000</pubDate>
		<dc:creator>John Muchow</dc:creator>
				<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=7884</guid>
		<description><![CDATA[PNG images that you include within an Xcode project are optimzed during the application build process. Good news is, this often results in a smaller application bundle. Bad news is, the resulting PNG images typically cannot be opened in Preview or other imaging software. The tool doing the optimization is pngcrush, an open source utility [...]]]></description>
			<content:encoded><![CDATA[<p>PNG images that you include within an Xcode project are optimzed during the application build process. Good news is, this often results in a smaller application bundle. Bad news is, the resulting PNG images typically cannot be opened in Preview or other imaging software.</p>
<p>The tool doing the optimization is <a  target="_blank"  href="http://pmt.sourceforge.net/pngcrush/index.html">pngcrush</a>, an open source utility available on SourceForge.<br />
<span id="more-7884"></span></p>
<h5>Undo pngcrush Optimizations</h5>
<p>If you have iPhone SDK 3.2 or greater installed (and did not change the default install path), pngcrush is located here: <em><strong>/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush</strong></em></p>
<p>If you would like view or otherwise open PNG files within an Xcode build (.app file), you will need to revert the optimizations on the file, the command line syntax for this is shown below:</p>
<p><em><strong>/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush<br />
  -revert-iphone-optimizations -q OptimizedPNG.png RevertedPNG.png</strong></em></p>
<p><strong>OptimizedFile.png</strong> is the name of the optimized PNG inside the .app bundle, <strong>RevertedPNG.png</strong> is the file output by pngcrush after the optimizations are removed.</p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove -->]]></content:encoded>
			<wfw:commentRss>http://iPhoneDeveloperTips.com/xcode/undo-xcode-png-optimizations-using-pngcrush.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

