<?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>Daron&#039;s Blog &#187; Programming</title>
	<atom:link href="http://blog.daronjones.com/index.php/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.daronjones.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 27 Oct 2011 01:07:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Solving plist &#8216;Invalid Summary&#8217; error</title>
		<link>http://blog.daronjones.com/index.php/2011/07/04/solving-plist-invalid-summary-error/</link>
		<comments>http://blog.daronjones.com/index.php/2011/07/04/solving-plist-invalid-summary-error/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 18:46:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone Programming]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.daronjones.com/?p=300</guid>
		<description><![CDATA[
			
				
			
		
If you are doing something like the following:
NSString *path = [[NSBundle mainBundle] pathForResource:@&#8221;MenuStructure&#8221; ofType:@&#8221;plist&#8221;];
self.menuItems = [NSArray arrayWithContentsOfFile:path];
and run into problems resulting in an empty array which upon examination using breakpoints shows &#8216;Invalid Array&#8217;. U should check the following:
1. That the path is correct. if u use NSLog to print the path to the console or use the contextual info from the path then you will be told were your app is located. This would work best using they simulator because you will actually be able to navigate to the files. ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.daronjones.com%2Findex.php%2F2011%2F07%2F04%2Fsolving-plist-invalid-summary-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.daronjones.com%2Findex.php%2F2011%2F07%2F04%2Fsolving-plist-invalid-summary-error%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you are doing something like the following:</p>
<p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #470083} span.s1 {color: #7c22ab} span.s2 {color: #000000} span.s3 {color: #e20300} span.s4 {color: #cc00a2} span.s5 {color: #3f8288} -->NSString *path = [[NSBundle mainBundle] pathForResource:@&#8221;MenuStructure&#8221; ofType:@&#8221;plist&#8221;];</p>
<p>self.menuItems = [NSArray arrayWithContentsOfFile:path];</p>
<p>and run into problems resulting in an empty array which upon examination using breakpoints shows &#8216;Invalid Array&#8217;. U should check the following:</p>
<p>1. That the path is correct. if u use NSLog to print the path to the console or use the contextual info from the path then you will be told were your app is located. This would work best using they simulator because you will actually be able to navigate to the files. If you are running this on the device, you will be able to download the app directory however it removes the bundle directory (The folder with the executable and plists that you want to inspect!).</p>
<p>Doing this is especially useful if you suspect that locali(s/z)ation may the source of your woes. When doing this I realised that the localisation files/folders that I thought I&#8217;d removed via the minus option in xcode were still present. I found also that by cleaning the project (product&gt;clean or Shift+CMD+K) that these unwanted files and folders were removed to reflect the correct layout.</p>
<p>2. The most likely cause is that the plist is not arranged in the format that you accessing it in. I.E it is laid out as a dictionary and you are using code like the above to move contents into an array (this may happen in reverse also). To check, right click the plist in the navigation pane and select open as&gt;Source Code to view the XML.</p>
<p>If it reads:</p>
<p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #cc00a2} span.s1 {color: #98802f} span.s2 {color: #e20300} span.s3 {color: #000000} span.Apple-tab-span {white-space:pre} --> <!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #cc00a2} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3800ff} span.s1 {color: #e20300} span.s2 {color: #cc00a2} span.s3 {color: #3800ff} span.s4 {color: #98802f} -->&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;</p>
<p>&lt;!DOCTYPE plist PUBLIC &#8220;-//Apple//DTD PLIST 1.0//EN&#8221; &#8220;<a href="http://www.apple.com/DTDs/PropertyList-1.0.dtd">http://www.apple.com/DTDs/PropertyList-1.0.dtd</a>&#8220;&gt;<br />
&lt;plist version=&#8221;1.0&#8243;&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;sectionChildren&lt;/key&gt;<br />
&lt;array&gt;&lt;/array&gt; or &lt;dict&gt;&lt;/dict&gt;<br />
&#8230;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;</p>
<p>Then the plists root object is a dictionary and is the reason for the error. Just change this to an array by removing the keys and changing the outermost &lt;dict&gt; and &lt;/dict&gt; to &lt;array&gt; and &lt;/array&gt;. I&#8217;m not sure and haven&#8217;t tested if this error would also occur if the root object was a string, number, or date etc.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&#8230;</p>
<p>&lt;/dict&gt;</p>
<p>&nbsp;</p>
<p>change the</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.daronjones.com/index.php/2011/07/04/solving-plist-invalid-summary-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change the height of a UIPageControl in XCode&#8217;s Interface Builder!</title>
		<link>http://blog.daronjones.com/index.php/2011/07/02/how-to-change-the-height-of-a-uipagecontrol-in-xcode/</link>
		<comments>http://blog.daronjones.com/index.php/2011/07/02/how-to-change-the-height-of-a-uipagecontrol-in-xcode/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 01:19:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone Programming]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.daronjones.com/?p=294</guid>
		<description><![CDATA[
			
				
			
		
Many sources state that you cannot change the height of a UIPageControl from within xcode, however the PageControl code sample from Apple demonstrates otherwise.
In this sample the UIPageControl features an editable height component, and you may also notice that whilst looking through the identity inspector, that there are also accessibility options.
This is because they have used a View (UIView) object from the library and changed the class type to a UIPageControl (naughty! &#8211; I swear I read somewhere in the documentation not to do this!) but the icon was the ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.daronjones.com%2Findex.php%2F2011%2F07%2F02%2Fhow-to-change-the-height-of-a-uipagecontrol-in-xcode%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.daronjones.com%2Findex.php%2F2011%2F07%2F02%2Fhow-to-change-the-height-of-a-uipagecontrol-in-xcode%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Many sources state that you cannot change the height of a UIPageControl from within xcode, however the PageControl code sample from Apple demonstrates otherwise.</p>
<p>In this sample the UIPageControl features an editable height component, and you may also notice that whilst looking through the identity inspector, that there are also accessibility options.</p>
<p>This is because they have used a View (UIView) object from the library and changed the class type to a UIPageControl (naughty! &#8211; I swear I read somewhere in the documentation not to do this!) but the icon was the giveaway &#8211; I&#8217;ve since tried and it works&#8230;</p>
<p>Once changed you&#8217;ll notice that you have access to the y-axis control within the size inspector &#8211; &#8230; yay!</p>
<p>Hope this helps some(one, where, day, how)!</p>
<p>Daron</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.daronjones.com/index.php/2011/07/02/how-to-change-the-height-of-a-uipagecontrol-in-xcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Go!</title>
		<link>http://blog.daronjones.com/index.php/2010/01/13/google-go/</link>
		<comments>http://blog.daronjones.com/index.php/2010/01/13/google-go/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 20:11:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://blog.daronjones.com/?p=17</guid>
		<description><![CDATA[
			
				
			
		
Yup! Another new(ish) product from Google.
Go is the new programming language developed by Google with its accompanying compiler Ogle and below character as its mascot:

Although you may get beaten up for wearing any clothing featuring the mascot, the language does actually sound exiting and I thought it was worth mentioning.
This new programming language has a focus on concurrency, garbage collection, and expressiveness. This essentially, means you can separate tasks out into separate processes and have them running all at the same time, whilst at the same time, any unused items ...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.daronjones.com%2Findex.php%2F2010%2F01%2F13%2Fgoogle-go%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.daronjones.com%2Findex.php%2F2010%2F01%2F13%2Fgoogle-go%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Yup! Another new(ish) product from Google.</p>
<p>Go is the new programming language developed by Google with its accompanying compiler Ogle and below character as its mascot:</p>
<p><a href="http://reneefrench.blogspot.com/"><img class="alignnone" title="Golang Mascot" src="http://golang.org/doc/logo-153x55.png" alt="Furry little gopher - depicts a simple line drawing of a gopher-like blob dashing to the right" width="153" height="55" /></a></p>
<p>Although you may get beaten up for wearing any clothing featuring the mascot, the language does actually sound exiting and I thought it was worth mentioning.</p>
<p>This new programming language has a focus on concurrency, garbage collection, and expressiveness. This essentially, means you can separate tasks out into separate processes and have them running all at the same time, whilst at the same time, any unused items of code in memory get destroyed in <a title="Real Time Computing" href="http://en.wikipedia.org/wiki/Real-time_computing" target="_blank">real-time</a> optimising performance, and lastly that the code uses syntax closer to human speech so its easier for programmers and non programmers alike to interpret and write code. This last factor is one on the increase in new frameworks, although it has long been one of the key features of <a title="Scripted Languages" href="http://en.wikipedia.org/wiki/Scripted_language" target="_blank">scripted languages</a> like <a title="Lisp Programming Language" href="http://www.lisp.org" target="_blank">lisp</a>, <a title="Small Talk Programming Language" href="http://www.smalltalk.org/" target="_blank">smalltalk</a>, <a title="Ruby on Rails Programming Language" href="http://www.rubyonrails.org" target="_blank">ruby</a> and <a title="Perl Programming Language" href="http://www.perl.org" target="_blank">perl</a>.</p>
<p>The <a title="Go Programming Language" href="http://golang.org/" target="_blank">golang site</a> is actually powered using this language, and it looks like the language was born out of and is geared toward creating server solutions. I see another <a title="Creator of the Ruby on Rails Framework" href="http://www.loudthinking.com/" target="_blank">David Heinmeir Hanson</a> and new scripting language emerging soon!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.daronjones.com/index.php/2010/01/13/google-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

