<?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>BetaDesigns( Blog ) &#187; XCode tips</title>
	<atom:link href="http://www.betadesigns.co.uk/Blog/category/xcode-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.betadesigns.co.uk/Blog</link>
	<description>Flex and Component Development</description>
	<lastBuildDate>Sat, 31 Dec 2011 13:04:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Getting Static Libraries to link correctly in XCode workspaces</title>
		<link>http://www.betadesigns.co.uk/Blog/2011/12/23/getting-static-libraries-to-link-correctly-in-xcode-workspaces/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2011/12/23/getting-static-libraries-to-link-correctly-in-xcode-workspaces/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 19:59:23 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[XCode tips]]></category>
		<category><![CDATA[linking]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[workspaces]]></category>
		<category><![CDATA[xcode]]></category>
		<category><![CDATA[xcode tips]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=506</guid>
		<description><![CDATA[I just answered a question on StackOverflow about how to fix dependency issues in xcode workspaces when linking static libraries. This is just a post to remind myself. StackOverflow Post On A side note if the files within the library are only to be used in Storyboards then you need to explicitly reference them otherwise [...]]]></description>
			<content:encoded><![CDATA[<p>I just answered a question on StackOverflow about how to fix dependency issues in xcode workspaces when linking static libraries. This is just a post to remind myself.</p>
<p><a href="http://stackoverflow.com/questions/5534235/how-do-you-get-implicit-dependencies-to-work-with-workspaces-in-xcode-4/8620101#8620101" title="StackOverflow Answer">StackOverflow Post</a></p>
<p>On A side note if the files within the library are only to be used in Storyboards then you need to explicitly reference them otherwise the compiler will remove them and you will get Run time errors.</p>
<p>The easiest way to do this is to create a Class with the same name as the library and each file you want to force for inclusion you should do the following.</p>
<pre class="actionscript">&nbsp;
&nbsp;
-<span style="color: #66cc66;">&#40;</span>id<span style="color: #66cc66;">&#41;</span> init
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #66cc66;">&#91;</span>CustomClass1 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #66cc66;">&#93;</span>;
    <span style="color: #66cc66;">&#91;</span>CustomClass2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #66cc66;">&#93;</span>;
    etc....
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Then inside your main application </p>
<pre class="actionscript">&nbsp;
- <span style="color: #66cc66;">&#40;</span>BOOL<span style="color: #66cc66;">&#41;</span>application:<span style="color: #66cc66;">&#40;</span>UIApplication *<span style="color: #66cc66;">&#41;</span>application didFinishLaunchingWithOptions:<span style="color: #66cc66;">&#40;</span>NSDictionary *<span style="color: #66cc66;">&#41;</span>launchOptions
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">//Force inclusion of files.</span>
    <span style="color: #66cc66;">&#91;</span>CustomLibrary <span style="color: #000000; font-weight: bold;">class</span><span style="color: #66cc66;">&#93;</span>;
    <span style="color: #b1b100;">return</span> YES;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<a href='http://twitter.com/share?url=http%3A%2F%2Fwww.betadesigns.co.uk%2FBlog%2F%3Fp%3D506&count=horizontal&related=&text=Getting%20Static%20Libraries%20to%20link%20correctly%20in%20XCode%20workspaces' class='twitter-share-button' data-text='Getting Static Libraries to link correctly in XCode workspaces' data-url='http://www.betadesigns.co.uk/Blog/?p=506' data-counturl='http://www.betadesigns.co.uk/Blog/2011/12/23/getting-static-libraries-to-link-correctly-in-xcode-workspaces/' data-count='horizontal' data-via='Omnipitence'></a>]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2011/12/23/getting-static-libraries-to-link-correctly-in-xcode-workspaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XCode localization Reminder.</title>
		<link>http://www.betadesigns.co.uk/Blog/2011/11/12/xcode-localization-reminder/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2011/11/12/xcode-localization-reminder/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 03:39:18 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[XCode tips]]></category>
		<category><![CDATA[genstrings]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[NSLocalizedString]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=454</guid>
		<description><![CDATA[Just a quick reminder for myself for creating localization files in the terminal for xcode projects. cd to project directory. find . -name \*.m &#124; xargs genstrings -o en.lproj The above will find all .m files in all subdirectories and extract the NSLocalizedString().]]></description>
			<content:encoded><![CDATA[<p>Just a quick reminder for myself for creating localization files in the terminal for xcode projects.</p>
<p>cd to project directory.</p>
<p>find . -name \*.m | xargs genstrings -o en.lproj</p>
<p>The above will find all .m files in all subdirectories and extract the NSLocalizedString().</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fwww.betadesigns.co.uk%2FBlog%2F%3Fp%3D454&count=horizontal&related=&text=XCode%20localization%20Reminder.' class='twitter-share-button' data-text='XCode localization Reminder.' data-url='http://www.betadesigns.co.uk/Blog/?p=454' data-counturl='http://www.betadesigns.co.uk/Blog/2011/11/12/xcode-localization-reminder/' data-count='horizontal' data-via='Omnipitence'></a>]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2011/11/12/xcode-localization-reminder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Native Extensions 101</title>
		<link>http://www.betadesigns.co.uk/Blog/2011/10/30/native-extensions-101/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2011/10/30/native-extensions-101/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 23:07:17 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Blackberry Playbook]]></category>
		<category><![CDATA[XCode tips]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[liquid-photo]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[native extensions]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=435</guid>
		<description><![CDATA[I have just release a blog post about creating a NativeAlert extension for AIR. It includes multiple buttons and dispatches ActionScript events when the user selects one of those buttons. the post can be found here. http://www.liquid-photo.com/2011/10/28/native-extension-for-adobe-air-and-ios-101/ The source is on github and you can download the NativeAlert.ane file directly also]]></description>
			<content:encoded><![CDATA[<p>I have just release a blog post about creating a NativeAlert extension for AIR. It includes multiple buttons and dispatches ActionScript events when the user selects one of those buttons.<br />
the post can be found here.</p>
<p>http://www.liquid-photo.com/2011/10/28/native-extension-for-adobe-air-and-ios-101/</p>
<p>The source is on github and you can download the NativeAlert.ane file directly also </p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fwww.betadesigns.co.uk%2FBlog%2F%3Fp%3D435&count=horizontal&related=&text=Native%20Extensions%20101' class='twitter-share-button' data-text='Native Extensions 101' data-url='http://www.betadesigns.co.uk/Blog/?p=435' data-counturl='http://www.betadesigns.co.uk/Blog/2011/10/30/native-extensions-101/' data-count='horizontal' data-via='Omnipitence'></a>]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2011/10/30/native-extensions-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Xcode breakpoints for debugging</title>
		<link>http://www.betadesigns.co.uk/Blog/2010/07/10/useful-xcode-breakpoints-for-debugging/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2010/07/10/useful-xcode-breakpoints-for-debugging/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 12:11:31 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[XCode tips]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=298</guid>
		<description><![CDATA[Just a quick list of the most useful breakpoints I have found for debugging purposes. This is more of a personal reference so that I can add them back to any new install of Xcode. objc_exception_throw [NSException raise] malloc_error_break In addition here is a great tech paper on debugging in xcode called Mac OS X [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick list of the most useful breakpoints I have found for debugging purposes. This is more of a personal reference so that I can add them back to any new install of Xcode.</p>
<p>objc_exception_throw<br />
[NSException raise]<br />
malloc_error_break</p>
<p>In addition here is a great tech paper on debugging in xcode called <a href="http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html">Mac OS X Debugging Magic</a></p>
<p><a href="http://www.cimgf.com/2008/04/02/cocoa-tutorial-fixing-memory-leaks-with-instruments/">And here is a nice tutorial for using instruments to debug</a> </p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fwww.betadesigns.co.uk%2FBlog%2F%3Fp%3D298&count=horizontal&related=&text=Useful%20Xcode%20breakpoints%20for%20debugging' class='twitter-share-button' data-text='Useful Xcode breakpoints for debugging' data-url='http://www.betadesigns.co.uk/Blog/?p=298' data-counturl='http://www.betadesigns.co.uk/Blog/2010/07/10/useful-xcode-breakpoints-for-debugging/' data-count='horizontal' data-via='Omnipitence'></a>]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2010/07/10/useful-xcode-breakpoints-for-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Eclipse Style XCode shortcuts</title>
		<link>http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 23:52:05 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[XCode tips]]></category>
		<category><![CDATA[ecliplse]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=164</guid>
		<description><![CDATA[After using eclipse for so long i have become a custom to my shortcuts and xcode just doesn't stand up to the job as far as i am concerned so here is a small list of the custom key bindings i have setup for myself. I will add more as I create them. To create [...]]]></description>
			<content:encoded><![CDATA[<p>After using eclipse for so long i have become a custom to my shortcuts and xcode just doesn't stand up to the job as far as i am concerned so here is a small list of the custom key bindings i have setup for myself. I will add more as I create them.</p>
<p>To create a custom key bindings file goto XCode&gt;Preferences&gt;Bindings&gt; Duplicate an existing binding and name it whatever you want then go to and open the file you just created in a text editor so you can see the xml output.</p>
<p><em>~/Library/Application Support/Xcode/Key Bindings/*.pbxkeys</em></p>
<p>A good list of available commands can be found <a href="http://www.erasetotheleft.com/post/mac-os-x-key-bindings/#comment-101" target="_blank">here</a></p>
<p><strong>1. Duplicate code!</strong></p>
<p>I can't believe xcode doesn't have this in Eclipse you simple select your text and press Ctrl + Alt and either Up or Down on the keypad and it will duplicate your code placing it either above or below the current selection. It will also reselect the newly duplicated code so that you can duplicate it as many times as you like.</p>
<div id="_mcePaste">&lt;key&gt;^~\U700&lt;/key&gt;</div>
<div id="_mcePaste">&lt;array&gt;</div>
<div id="_mcePaste">&lt;string&gt;copy:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveUp:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveToEndOfLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertLineBreak:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertNewLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;setMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;paste:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;selectToMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;/array&gt;</div>
<div id="_mcePaste">&lt;key&gt;^~\U701&lt;/key&gt;</div>
<div id="_mcePaste">&lt;array&gt;</div>
<div id="_mcePaste">&lt;string&gt;copy:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveDown:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveToBeginningOfLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertLineBreak:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertNewLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveUp:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;setMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;paste:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;selectToMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;/array&gt;</div>
<div><strong>2. Delete Line.</strong></div>
<div>Deletes the current line your cursor is on. press Ctrl + D.</div>
<div>
<div><span style="white-space: pre;">&lt;key&gt;^d&lt;/key&gt; </span></div>
<div><span style="white-space: pre;">&lt;array&gt; </span></div>
<div><span style="white-space: pre;">&lt;string&gt;cut:&lt;/string&gt; </span></div>
<div><span style="white-space: pre;">&lt;string&gt;selectLine:&lt;/string&gt; </span></div>
<div><span style="white-space: pre;">&lt;string&gt;cut:&lt;/string&gt; </span></div>
<div><span style="white-space: pre;">&lt;/array&gt;</span></div>
</div>
<a href='http://twitter.com/share?url=http%3A%2F%2Fwww.betadesigns.co.uk%2FBlog%2F%3Fp%3D164&count=horizontal&related=&text=Custom%20Eclipse%20Style%20XCode%20shortcuts' class='twitter-share-button' data-text='Custom Eclipse Style XCode shortcuts' data-url='http://www.betadesigns.co.uk/Blog/?p=164' data-counturl='http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/' data-count='horizontal' data-via='Omnipitence'></a>]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

